Skip to content

Commit

Permalink
Extend automatic selection on build from day-based picker to month/ye…
Browse files Browse the repository at this point in the history
…ar pickers

Signed-off-by: Hans Kokx <hans.d.kokx@gmail.com>
  • Loading branch information
hanskokx committed May 2, 2024
1 parent 3e7b7c7 commit a11d6bb
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/src/month_picker.dart
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,8 @@ class _MonthPickerState<T extends Object> extends State<MonthPicker<T>> {
}

textDirection = Directionality.of(context);

widget.selectionLogic.onDayTapped(widget.selection.earliest);
}

@override
Expand Down
2 changes: 2 additions & 0 deletions lib/src/year_picker.dart
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,8 @@ class _YearPickerState<T extends Object> extends State<YearPicker<T>> {
}

textDirection = Directionality.of(context);

widget.selectionLogic.onDayTapped(widget.selection.earliest);
}

@override
Expand Down

0 comments on commit a11d6bb

Please sign in to comment.