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
now has anothor position should be fixed at: _DatePickerContentPopUp::build::yearWidget
final yearWidget = [
Expanded(
child: () {
final years = widget.endDate.year - widget.startDate.year;
final formatter =DateFormat.y(locale.toString());
// YEAR
it should be
final yearWidget = [
Expanded(
child: () {
final years = widget.endDate.year - widget.startDate.year +1;
final formatter =DateFormat.y(locale.toString());
// YEAR
the date in onChanged Callback will be automatically truncate to the startTime of selectedDate.
for example: if you choose 2023/7/5, it should be 2023/7/5 0:00:00 without any other time infos.
Describe the bug
For example, now is 2023/7/5, and you set endDate 2023/7/5 to DataPicker, will not show 2023 in year scroll items.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
2023 show be current selected, because it should select the date (default now) 2023/7/5
Screenshots
Additional context
current version is: ^4.4.0
lock version is: 4.5.1
but now version also has this bug.
It is the tips about how to solve this bug.
class _DatePickerState ::property currentYear
it should be, take 2023 ~ 2024 for example, it has 2 items.
The text was updated successfully, but these errors were encountered: