Skip to content

Commit

Permalink
add check to keep time in timeline if nothing causes overlap (#343)
Browse files Browse the repository at this point in the history
  • Loading branch information
mataai authored May 1, 2024
1 parent d22e9c6 commit 3ed5bf6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/src/components/_internal_components.dart
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,9 @@ class _TimeLineState extends State<TimeLine> {
}) {
return Visibility(
visible: !((_currentTime.minute >= 45 && _currentTime.hour == hour - 1) ||
(_currentTime.minute <= 15 && _currentTime.hour == hour)),
(_currentTime.minute <= 15 && _currentTime.hour == hour)) ||
!(widget.liveTimeIndicatorSettings.showTime ||
widget.liveTimeIndicatorSettings.showTimeBackgroundView),
child: Positioned(
top: topPosition,
left: 0,
Expand Down

0 comments on commit 3ed5bf6

Please sign in to comment.