flutter/dev/tools/gen_defaults/lib
Qun Cheng 4e7e4512b6
Reorder materialStateProperty defaults (#125905)
Fixes #122250. This PR is to make sure all the MaterialStateProperty defaults are able to correctly resolve different states. 
* When a widget is pressed, it is also hovered, so we need to put the `MaterialState.pressed` check before `MaterialState.hovered`. 
* When a widget is focused, the widget should still be able to be hovered, so we should check `MaterialState.hovered` before `MaterialState.focused`.
* There are also cases like in _InputDecoratorDefaultsM3, the `MaterialState.disabled` should be checked before `MaterialState.error`.

 the order should be disabled, (error), pressed, hovered, focused.
2023-05-11 00:03:09 +00:00
..
action_chip_template.dart Cleanup M3 token templates for theme lookups (#122601) 2023-03-14 17:01:13 +00:00
app_bar_template.dart Reorder materialStateProperty defaults (#125905) 2023-05-11 00:03:09 +00:00
badge_template.dart Correct Badge interpretation of its alignment parameter (#119853) 2023-02-08 08:52:41 -08:00
banner_template.dart Cleanup M3 token templates for theme lookups (#122601) 2023-03-14 17:01:13 +00:00
bottom_app_bar_template.dart Cleanup M3 token templates for theme lookups (#122601) 2023-03-14 17:01:13 +00:00
bottom_sheet_template.dart Provide default constraints for M3 bottom sheets (#120065) 2023-04-27 09:28:11 +02:00
button_template.dart Reorder materialStateProperty defaults (#125905) 2023-05-11 00:03:09 +00:00
card_template.dart Cleanup M3 token templates for theme lookups (#122601) 2023-03-14 17:01:13 +00:00
checkbox_template.dart Checkbox.fillColor should be applied to checkbox's background color when it is unchecked. (#125643) 2023-04-28 12:05:31 -07:00
color_scheme_template.dart Fix Color Scheme Defaults in Material 3 (#112666) 2022-10-28 10:30:59 -07:00
date_picker_template.dart Reorder materialStateProperty defaults (#125905) 2023-05-11 00:03:09 +00:00
dialog_template.dart Add Dialog.fullscreen and example (#112261) 2022-09-29 09:12:05 -07:00
divider_template.dart Add support for Material 3 Divider and VerticalDivider (#112655) 2022-09-29 11:30:53 -07:00
drawer_template.dart Fix M3 Drawer default shape in RTL (#118185) 2023-01-12 14:22:53 +00:00
expansion_tile_template.dart Reland "Update ExpansionTile to support Material 3 & add an example" (#121212) 2023-02-24 06:30:33 -08:00
fab_template.dart Refactor gen_defaults to support multiple generated code blocks in the same file independently. (#107278) 2022-07-10 17:17:09 -07:00
filter_chip_template.dart Cleanup M3 token templates for theme lookups (#122601) 2023-03-14 17:01:13 +00:00
icon_button_template.dart Reorder materialStateProperty defaults (#125905) 2023-05-11 00:03:09 +00:00
input_chip_template.dart Cleanup M3 token templates for theme lookups (#122601) 2023-03-14 17:01:13 +00:00
input_decorator_template.dart Reorder materialStateProperty defaults (#125905) 2023-05-11 00:03:09 +00:00
list_tile_template.dart Fix ListTile's default iconColor token used & update examples (#120444) 2023-02-13 23:52:32 +00:00
menu_template.dart Update Material tokens to 0.162 (#122388) 2023-03-13 16:16:07 +00:00
navigation_bar_template.dart Fixing elevation issues with Material 3 (#110624) 2022-09-06 16:16:45 -07:00
navigation_drawer_template.dart Cleanup M3 token templates for theme lookups (#122601) 2023-03-14 17:01:13 +00:00
navigation_rail_template.dart Add IndicatorShape to NavigationRailTheme and fix indicator ripple. (#116108) 2022-11-28 20:44:29 +00:00
popup_menu_template.dart Update Material tokens to 0.162 (#122388) 2023-03-13 16:16:07 +00:00
progress_indicator_template.dart Fixed the size issue (#112601) 2022-09-29 09:45:05 -07:00
radio_template.dart Update Radio button to material 3 (#111774) 2022-09-20 14:09:20 -07:00
search_bar_template.dart Create SearchBar and SearchBarTheme (#122309) 2023-03-16 15:04:19 -07:00
search_view_template.dart Create SearchAnchor and SearchViewTheme Widget (#123256) 2023-03-27 23:31:11 -07:00
segmented_button_template.dart Reorder materialStateProperty defaults (#125905) 2023-05-11 00:03:09 +00:00
slider_template.dart Reorder materialStateProperty defaults (#125905) 2023-05-11 00:03:09 +00:00
snackbar_template.dart Cleanup M3 token templates for theme lookups (#122601) 2023-03-14 17:01:13 +00:00
surface_tint.dart Refactor gen_defaults to support multiple generated code blocks in the same file independently. (#107278) 2022-07-10 17:17:09 -07:00
switch_template.dart Add Switch.trackOutlineWidth property (#125848) 2023-05-05 13:34:08 -07:00
tabs_template.dart Reorder materialStateProperty defaults (#125905) 2023-05-11 00:03:09 +00:00
template.dart Create SearchBar and SearchBarTheme (#122309) 2023-03-16 15:04:19 -07:00
text_field_template.dart TextField should support disabled input text style (#119216) 2023-03-17 10:09:49 -07:00
time_picker_template.dart Reorder materialStateProperty defaults (#125905) 2023-05-11 00:03:09 +00:00
typography_template.dart Refactor gen_defaults to support multiple generated code blocks in the same file independently. (#107278) 2022-07-10 17:17:09 -07:00