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

Hiding day-month-year selectors #35

Closed matteoberla closed 2 weeks ago

matteoberla commented 2 weeks ago

Hi, when using bottomsheet picker with DateTimePickerType.dateTime in some tablet screen the elements are shrinked and it is difficult to use the selectors.

Here is what happens: Immagine 2024-06-10 111052

It would be nice to have the possibility to hide the day-month-year selectors as the calendar is already enough in order to select the desired date.

I think that it would be better to add another DateTimePickerType so users that will use this package will be able to choose between different layout and programmatically choose which one is the better based on the screen size, or just add a voice inside the options to hide the dd/mm/yyyy selectors.

Is it possibile? Thank you very much

mytooyo commented 2 weeks ago

The breakpoint parameter can be used to adjust the split display. Currently, this package is mainly for Picker with wheel selection.
Therefore, it is not intended to be a calendar-only display.

There are no plans to implement voice input at this time, given the level of difficulty and other factors.

matteoberla commented 2 weeks ago

Maybe i explained wrong what i was trying to achiving.

here's the result i would like to reach, just for UX purpose.

Immagine 2024-06-10 111052

or just add a voice inside the options to hide the dd/mm/yyyy selectors

I meant adding a property true/false to hide or show the year - month - day selectors from the bottom sheet

mytooyo commented 2 weeks ago

I understand your request. It is a UI only for wide window and cannot be the same UI for narrow window. Implementation and uniformity considerations make it difficult to achieve that UI. Sorry.

matteoberla commented 2 weeks ago

Cannot it be a new type of DateTimePickerType as it allows users to both select date and time but in a more shrinked way?

mytooyo commented 2 weeks ago

If I can achieve the same UX in a narrow window, I may add a type, but I can't think of a good idea at the moment. I'd like to avoid adding type just for wide windows.

matteoberla commented 2 weeks ago

ok that's clear, do you have by any chance any other workaround to show the calendar and the time picker in the same view?

I would like that the final user can select both date and time from the same view without interacting with other buttons as it could be not that intuitive for an unexpert user

mytooyo commented 2 weeks ago

No other features other than those currently offered.