Skip to content

Commit f7ad404

Browse files
authored
fix/Layout shift of timer hover buttons (#742)
1 parent a5b08e5 commit f7ad404

File tree

1 file changed

+1
-11
lines changed

1 file changed

+1
-11
lines changed

lib/app/modules/timer/views/timer_view.dart

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -817,7 +817,7 @@ class TimerView extends GetView<TimerController> {
817817
Visibility(
818818
visible: controller.timerList.length > 2,
819819
child: Positioned(
820-
top: calculateTopPosition(),
820+
top: 60,
821821
child: Material(
822822
elevation: 5.0,
823823
color: Colors.transparent,
@@ -863,14 +863,4 @@ class TimerView extends GetView<TimerController> {
863863
},
864864
);
865865
}
866-
867-
double calculateTopPosition() {
868-
final RenderBox? renderBox =
869-
dialogKey.currentContext?.findRenderObject() as RenderBox?;
870-
if (renderBox != null) {
871-
final position = renderBox.localToGlobal(Offset.zero);
872-
return position.dy - 100;
873-
}
874-
return 160;
875-
}
876866
}

0 commit comments

Comments
 (0)