flutter/dev/tools/gen_defaults/lib
Taha Tesser 3403ca413f
Update hourMinuteTextStyle defaults for Material 3 Time Picker (#143749)
fixes [`hourMinuteTextStyle` Material 3 default doesn't match the specs](https://github.com/flutter/flutter/issues/143748)

This updates `hourMinuteTextStyle` defaults to match Material 3 specs. `hourMinuteTextStyle` should use different font style for different entry modes based on the specs.

### Specs
![Screenshot 2024-02-20 at 15 06 40](https://github.com/flutter/flutter/assets/48603081/5198a5da-314d-401e-8d7f-d4a68b86e43c)
![Screenshot 2024-02-20 at 15 07 22](https://github.com/flutter/flutter/assets/48603081/79436ce4-fef6-480a-bc43-b628497e860f)

### Before
```dart
 return _textTheme.displayMedium!.copyWith(color: _hourMinuteTextColor.resolve(states));
```
### After 
```dart
      return entryMode == TimePickerEntryMode.dial
        ? _textTheme.displayLarge!.copyWith(color: _hourMinuteTextColor.resolve(states))
        : _textTheme.displayMedium!.copyWith(color: _hourMinuteTextColor.resolve(states));
```
2024-02-21 10:39:35 +00:00
..
action_chip_template.dart Introduce tone-based surfaces and accent color add-ons - Part 2 (#138521) 2024-02-20 19:01:50 +00:00
app_bar_template.dart Improve defaults generation with logging, stats, and token validation (#128244) 2023-06-09 11:28:18 +00:00
badge_template.dart Improve defaults generation with logging, stats, and token validation (#128244) 2023-06-09 11:28:18 +00:00
banner_template.dart Introduce tone-based surfaces and accent color add-ons - Part 2 (#138521) 2024-02-20 19:01:50 +00:00
bottom_app_bar_template.dart Introduce tone-based surfaces and accent color add-ons - Part 2 (#138521) 2024-02-20 19:01:50 +00:00
bottom_sheet_template.dart Introduce tone-based surfaces and accent color add-ons - Part 2 (#138521) 2024-02-20 19:01:50 +00:00
button_template.dart Update the default outline color for OutlinedButton (#138768) 2023-11-22 20:16:37 +00:00
card_template.dart Add Card.filled and Card.outlined factory methods (#136229) 2023-11-01 23:29:49 +00:00
checkbox_template.dart Improve defaults generation with logging, stats, and token validation (#128244) 2023-06-09 11:28:18 +00:00
chip_template.dart Fix token usages on Regular Chip and Action Chip (#141701) 2024-02-01 00:05:22 +00:00
color_scheme_template.dart Introduce tone-based surfaces and accent color add-ons - Part 2 (#138521) 2024-02-20 19:01:50 +00:00
date_picker_template.dart Add cancelButtonStyle & confirmButtonStyle to the DatePickerThemeData (#132847) 2023-08-30 21:16:13 +00:00
dialog_template.dart Add Dialog.fullscreen and example (#112261) 2022-09-29 09:12:05 -07:00
divider_template.dart Improve defaults generation with logging, stats, and token validation (#128244) 2023-06-09 11:28:18 +00:00
drawer_template.dart Introduce tone-based surfaces and accent color add-ons - Part 2 (#138521) 2024-02-20 19:01:50 +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 Improve defaults generation with logging, stats, and token validation (#128244) 2023-06-09 11:28:18 +00:00
filter_chip_template.dart Introduce tone-based surfaces and accent color add-ons - Part 2 (#138521) 2024-02-20 19:01:50 +00:00
icon_button_template.dart Introduce tone-based surfaces and accent color add-ons - Part 2 (#138521) 2024-02-20 19:01:50 +00:00
input_chip_template.dart M3 - Fix Chip icon and label colors (#140573) 2024-01-30 16:28:31 -08:00
input_decorator_template.dart Relax the warning of unavailable tokens in gen_defaults when a default value is provided (#140872) 2024-01-23 09:35:22 +00:00
list_tile_template.dart Update ListTile text defaults to use ColorScheme (#128581) 2023-06-12 14:52:06 +00:00
menu_template.dart Introduce tone-based surfaces and accent color add-ons - Part 2 (#138521) 2024-02-20 19:01:50 +00:00
motion_template.dart Add support for M3 motion (#129942) 2023-07-19 22:07:59 +02:00
navigation_bar_template.dart Add Card.filled and Card.outlined factory methods (#136229) 2023-11-01 23:29:49 +00:00
navigation_drawer_template.dart Introduce tone-based surfaces and accent color add-ons - Part 2 (#138521) 2024-02-20 19:01:50 +00:00
navigation_rail_template.dart Improve defaults generation with logging, stats, and token validation (#128244) 2023-06-09 11:28:18 +00:00
popup_menu_template.dart Introduce tone-based surfaces and accent color add-ons - Part 2 (#138521) 2024-02-20 19:01:50 +00:00
progress_indicator_template.dart Improve defaults generation with logging, stats, and token validation (#128244) 2023-06-09 11:28:18 +00:00
radio_template.dart Update Radio button to material 3 (#111774) 2022-09-20 14:09:20 -07:00
search_bar_template.dart Introduce tone-based surfaces and accent color add-ons - Part 2 (#138521) 2024-02-20 19:01:50 +00:00
search_view_template.dart Improve defaults generation with logging, stats, and token validation (#128244) 2023-06-09 11:28:18 +00:00
segmented_button_template.dart Introduce tone-based surfaces and accent color add-ons - Part 2 (#138521) 2024-02-20 19:01:50 +00:00
slider_template.dart Improve defaults generation with logging, stats, and token validation (#128244) 2023-06-09 11:28:18 +00:00
snackbar_template.dart Cleanup M3 token templates for theme lookups (#122601) 2023-03-14 17:01:13 +00:00
surface_tint.dart Improve defaults generation with logging, stats, and token validation (#128244) 2023-06-09 11:28:18 +00:00
switch_template.dart Adaptive Switch (#130425) 2023-11-07 10:26:23 -08:00
tabs_template.dart Introduce tone-based surfaces and accent color add-ons - Part 2 (#138521) 2024-02-20 19:01:50 +00:00
template.dart Relax the warning of unavailable tokens in gen_defaults when a default value is provided (#140872) 2024-01-23 09:35:22 +00: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 Update hourMinuteTextStyle defaults for Material 3 Time Picker (#143749) 2024-02-21 10:39:35 +00:00
token_logger.dart Relax the warning of unavailable tokens in gen_defaults when a default value is provided (#140872) 2024-01-23 09:35:22 +00:00
typography_template.dart Improve defaults generation with logging, stats, and token validation (#128244) 2023-06-09 11:28:18 +00:00