Skip to content

Commit

Permalink
fix: 🐛LiveTimeLine autoscroll added SimformSolutionsPvtLtd#331 (Simfo…
Browse files Browse the repository at this point in the history
  • Loading branch information
ravilsimform committed May 17, 2024
1 parent e6e607b commit f0d9593
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/src/day_view/day_view.dart
Original file line number Diff line number Diff line change
Expand Up @@ -415,7 +415,7 @@ class DayViewState<T extends Object?> extends State<DayView<T>> {
_width = widget.width ?? constraint.maxWidth;
_updateViewDimensions();
if (widget.showLiveTimeLineInAllDays) {
updateLiveLine();
animateToLiveTimeLineIndicator();
}
return SizedBox(
width: _width,
Expand Down Expand Up @@ -557,7 +557,7 @@ class DayViewState<T extends Object?> extends State<DayView<T>> {
"quarterHourIndicator height must be less than minuteHeight * 60");
}

void updateLiveLine() {
void animateToLiveTimeLineIndicator() {
final offSetForSingleMinute = _height / 24 / 60;
final currentTime = TimeOfDay.now();
final currentDuration =
Expand Down

0 comments on commit f0d9593

Please sign in to comment.