You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description
The assertion for making sure the selected date's month for month_view is not outside of the min and max dates throws exceptions for some dates that are valid because the min and max dates for assertion does not consider the day while the selected date includes the day.
Reproduction Steps:
Use the MonthPicker Widget or showDatePickerDialog (and navigate to the months view)
Set these values as follows:
minDate: DateTime(2024, 1, 1)
maxDate: DateTime(2024, 6, 30),
selectedDate: DateTime(2024, 6, 2) //Any day after 1st June
Activate picker
Exception is thrown
Fix:
Remove/comment out the day when for the selected date
Description
The assertion for making sure the selected date's month for month_view is not outside of the min and max dates throws exceptions for some dates that are valid because the min and max dates for assertion does not consider the day while the selected date includes the day.
Reproduction Steps:
Fix:
Remove/comment out the day when for the selected date
// selectedDate!.day,
date_picker/lib/src/shared/month_view.dart
Line 41 in 6d2f9d6
The text was updated successfully, but these errors were encountered: