Adding negativeConstant
This commit is contained in:
+5
-5
@@ -148,7 +148,7 @@ class _MessageActionsModalState extends State<MessageActionsModal> {
|
|||||||
);
|
);
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
const SizedBox(height: 8),
|
const SizedBox(height: 10),
|
||||||
IgnorePointer(
|
IgnorePointer(
|
||||||
child: widget.messageWidget,
|
child: widget.messageWidget,
|
||||||
),
|
),
|
||||||
@@ -294,13 +294,13 @@ class _MessageActionsModalState extends State<MessageActionsModal> {
|
|||||||
offset necessary for the position of reaction look the best way
|
offset necessary for the position of reaction look the best way
|
||||||
possible.
|
possible.
|
||||||
*/
|
*/
|
||||||
const offsetConstant = 2700;
|
const positiveConstant = 2700;
|
||||||
final offsetCorrection = maxWidth / offsetConstant;
|
const negativeConstant = 1700;
|
||||||
|
|
||||||
if (maxWidth <= 752) {
|
if (maxWidth <= 752) {
|
||||||
result = shiftFactor - offsetCorrection;
|
result = shiftFactor - maxWidth / negativeConstant;
|
||||||
} else {
|
} else {
|
||||||
result = shiftFactor + offsetCorrection;
|
result = shiftFactor + maxWidth / positiveConstant;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
result = 1.2 - divFactor;
|
result = 1.2 - divFactor;
|
||||||
|
|||||||
+1
-1
@@ -84,7 +84,7 @@ class StreamMessageReactionsModal extends StatelessWidget {
|
|||||||
message: message,
|
message: message,
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
const SizedBox(height: 8),
|
const SizedBox(height: 10),
|
||||||
IgnorePointer(
|
IgnorePointer(
|
||||||
child: messageWidget,
|
child: messageWidget,
|
||||||
),
|
),
|
||||||
|
|||||||
Reference in New Issue
Block a user