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 startYear and endYear doesn't work as expected #627

Closed
WinXaito opened this issue Nov 30, 2022 · 0 comments 路 Fixed by #637
Closed

馃悰 DatePicker startYear and endYear doesn't work as expected #627

WinXaito opened this issue Nov 30, 2022 · 0 comments 路 Fixed by #637
Labels
bug Something isn't working

Comments

@WinXaito
Copy link
Collaborator

Describe the bug

startYear and endYear attributes doesn't work as expected.

To Reproduce

Using this:

DatePicker(
  selected: DateTime.now(),
  onChanged: (_){},
  startYear: 2000,
  endYear: DateTime.now().year,
),

The startYear is not 2000 and the endYear is not 2022 (but 2047, so 25 years more than selected, what is expected if endYear is null).

Expected behavior

With the example above, the startYear must be 2000 and the endYear must be 2022.

Additional context

I think that will be cool if we can pass a simple end DateTime (and eventually a start DateTime) attributes. Typically, I want that my user can chose a date before now and not after.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants