Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

DatePicker does not show selected date馃悰 #415

Closed
pamtbaau opened this issue Jul 6, 2022 · 2 comments
Closed

DatePicker does not show selected date馃悰 #415

pamtbaau opened this issue Jul 6, 2022 · 2 comments
Assignees

Comments

@pamtbaau
Copy link

pamtbaau commented Jul 6, 2022

Describe the bug
DatePicker shows placeholder texts 'year', 'month' and 'day' when value of property 'selected' is null;
DatePicker is empty when value of property 'selected' is set to a valid DateTime.

To Reproduce
Add the following to widget:

DatePicker(
  selected: selectedDate,
  fieldOrder: const [DatePickerField.year, DatePickerField.month, DatePickerField.day],
  onChanged: (DateTime date) {
    selectedDate = DateTime(date.year, date.month, date.day);
    setState(() {});
  },
)
  • On first paint of widget, variable 'selectedDate' is null. DatePicker shows placeholders.
    image

  • After selecting a date, fields year, month, day remain empty.
    image

  • When opening the datepicker, it shows correctly the date from variable 'selectedDate'

Expected behavior
I expect the fields year, month, day to be filled with the selected date.

Screenshots
If applicable, add screenshots to help explain your problem.

Additional context
Add any other context about the problem here.

@bdlukaa
Copy link
Owner

bdlukaa commented Jul 7, 2022

looks like the text color isnt applied to them

@pamtbaau
Copy link
Author

pamtbaau commented Jul 9, 2022

Downloaded latest master and DatePicker is working fine. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants