Skip to content

Commit

Permalink
fix: 🐛 onDateTap return wrong date when startHour is set #341
Browse files Browse the repository at this point in the history
- add startHour minutes (startHour * 60) to DateTime which then passed as arguments to onDateTap
  • Loading branch information
apurva010 committed May 1, 2024
1 parent a3f0c90 commit c782b36
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/src/day_view/day_view.dart
Original file line number Diff line number Diff line change
Expand Up @@ -646,6 +646,10 @@ class DayViewState<T extends Object?> extends State<DayView<T>> {
startDuration: startDuration,
endDuration: endDuration,
);
} else {
return SizedBox.shrink();
}
}

/// Default view header builder. This builder will be used if
/// [widget.dayTitleBuilder] is null.
Expand Down

0 comments on commit c782b36

Please sign in to comment.