Skip to content

Commit

Permalink
Merge pull request #67 from llucie/fix/display_livetimeindicator_in_f…
Browse files Browse the repository at this point in the history
…oreground

fix: Display LiveTimeIndicator in foreground
  • Loading branch information
PRBaraiya authored Jun 1, 2022
2 parents 460590c + 8b875e6 commit 06dc0a1
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions lib/src/day_view/_internal_day_view_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -109,14 +109,6 @@ class InternalDayViewPage<T extends Object?> extends StatelessWidget {
showVerticalLine: showVerticalLine,
),
),
if (showLiveLine && liveTimeIndicatorSettings.height > 0)
LiveTimeIndicator(
liveTimeIndicatorSettings: liveTimeIndicatorSettings,
width: width,
height: height,
heightPerMinute: heightPerMinute,
timeLineWidth: timeLineWidth,
),
PressDetector(
width: width,
height: height,
Expand Down Expand Up @@ -148,6 +140,16 @@ class InternalDayViewPage<T extends Object?> extends StatelessWidget {
timeLineWidth: timeLineWidth,
key: ValueKey(heightPerMinute),
),
if (showLiveLine && liveTimeIndicatorSettings.height > 0)
IgnorePointer(
child: LiveTimeIndicator(
liveTimeIndicatorSettings: liveTimeIndicatorSettings,
width: width,
height: height,
heightPerMinute: heightPerMinute,
timeLineWidth: timeLineWidth,
),
),
],
),
);
Expand Down

0 comments on commit 06dc0a1

Please sign in to comment.