• Patrick Lindsay's avatar
    Added CupertinoDatepicker monthYear mode (flutter#93508) (#125603) · 37f348b0
    Patrick Lindsay authored
    This PR adds a month and year mode to the CupertinoDatePicker. The monthYear mode is the date mode without the day of the month.
    ![monthYearMode](https://user-images.githubusercontent.com/98486346/234749274-794dce24-28c7-4f48-92ab-5ac46ec069d7.png)
    
    This feature was added at the request of:
    [Proposal] CupertinoDatePicker with month and year. #93508
    
    One thing that I was unsure of was the use of the DatePickerDateOrder to determine the monthYear order. It could be considered a workaround since the DatePickerDateOrder is intended to order day, month, and year. This means that a developer could use the DatePickerDateOrder.dmy (day, month, year) or DatePickerDateOrder.mdy (month, day, year) to get the same result. 
    
    At first I intended to add a DatePickerMonthYearOrder enum to the localizations, in addition to a new parameter for the CupertinoDatePicker for monthYearOrder, but I ended up reverting these changes (https://github.com/flutter/flutter/commit/1c61f1084e63fc4f6e394c3621a1ae626fd631a5) because I had not considered the effects of adding values to the localizations.
    
    I decided it may be better to not add an additional parameter (monthYearOrder) that would go mostly unused. I am very open to feedback or ideas on this matter.
    37f348b0
Name
Last commit
Last update
..
material Loading commit data...
README.md Loading commit data...
action_sheet_test.dart Loading commit data...
activity_indicator_test.dart Loading commit data...
adaptive_text_selection_toolbar_test.dart Loading commit data...
app_test.dart Loading commit data...
bottom_tab_bar_test.dart Loading commit data...
button_test.dart Loading commit data...
checkbox_test.dart Loading commit data...
colors_test.dart Loading commit data...
context_menu_action_test.dart Loading commit data...
context_menu_test.dart Loading commit data...
date_picker_test.dart Loading commit data...
debug_test.dart Loading commit data...
desktop_text_selection_toolbar_button_test.dart Loading commit data...
desktop_text_selection_toolbar_test.dart Loading commit data...
dialog_test.dart Loading commit data...
form_row_test.dart Loading commit data...
form_section_test.dart Loading commit data...
icon_theme_data_test.dart Loading commit data...
list_section_test.dart Loading commit data...
list_tile_test.dart Loading commit data...
localizations_test.dart Loading commit data...
magnifier_test.dart Loading commit data...
nav_bar_test.dart Loading commit data...
nav_bar_transition_test.dart Loading commit data...
page_test.dart Loading commit data...
picker_test.dart Loading commit data...
radio_test.dart Loading commit data...
refresh_test.dart Loading commit data...
route_test.dart Loading commit data...
scaffold_test.dart Loading commit data...
scrollbar_paint_test.dart Loading commit data...
scrollbar_test.dart Loading commit data...
search_field_test.dart Loading commit data...
segmented_control_test.dart Loading commit data...
slider_test.dart Loading commit data...
sliding_segmented_control_test.dart Loading commit data...
spell_check_suggestions_toolbar_test.dart Loading commit data...
switch_test.dart Loading commit data...
tab_scaffold_test.dart Loading commit data...
tab_test.dart Loading commit data...
text_field_restoration_test.dart Loading commit data...
text_field_test.dart Loading commit data...
text_form_field_row_test.dart Loading commit data...
text_selection_test.dart Loading commit data...
text_selection_toolbar_button_test.dart Loading commit data...
text_selection_toolbar_test.dart Loading commit data...
text_theme_test.dart Loading commit data...
theme_test.dart Loading commit data...