mytooyo / board_datetime_picker

Picker to select date and time for Flutter. It is both a calendar and a picker, offering a variety of options as a package.
BSD 3-Clause "New" or "Revised" License
6 stars 6 forks source link

Prevent Display and Selection of Non-existent Dates #24

Closed motucraft closed 2 months ago

motucraft commented 2 months ago

When attempting to select an invalid date such as February 31st, the picker erroneously falls back to March 31st.

This behavior can be misleading and might cause unexpected behavior in applications that rely on accurate date inputs. I suggest improving the package by preventing non-existent dates from being displayed or selectable in the date picker scroll.

Attached is a video demonstrating the issue, where selecting February 31st results in the date falling back to March 31st.

https://github.com/mytooyo/board_datetime_picker/assets/35750184/bf312ddb-ec56-4e0e-8e3f-e888bcfde7b9

Thank you for considering this enhancement.

mytooyo commented 2 months ago

Thanks for the report. I am aware of the issue. Please wait a moment while we fix it.

mytooyo commented 2 months ago

@motucraft A bug fixed version was released in v1.6.3. Thanks for your cooperation.

motucraft commented 2 months ago

I appreciate the quick response and effort to enhance the usability of the package.