flutter/dev/tools/gen_defaults/lib
David Martos b34ee07372
Fix token usages on Regular Chip and Action Chip (#141701)
The regular chip and the action chip templates were referencing non existent M3 design tokens.

Fixes https://github.com/flutter/flutter/issues/141288

The `ActionChip` doesn't have any visual difference. Even though the template and file changes, the default `labelStyle` color already uses `onSurface`.
For the reviewer, I've changed the `action_chip_test` to expect a color from the colorScheme so that it is more explicit that the color might not be the same as the labelLarge default in the global textTheme, even if for this case the color is the same.

The regular `Chip` does have visual differences, in particular, the label and trailing icon colors, which were not following the specification. In order to fix this, the regular chip now is based from the `filter-chip` spec as described in the linked issue.

## Before

![image](https://github.com/flutter/flutter/assets/22084723/d602ef42-625a-4b5c-b63b-c46cb2070d80)

## After

![image](https://github.com/flutter/flutter/assets/22084723/dddb754f-fd29-4c4c-96cc-e7f508219f12)
2024-02-01 00:05:22 +00:00
..
action_chip_template.dart Fix token usages on Regular Chip and Action Chip (#141701) 2024-02-01 00:05:22 +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 Cleanup M3 token templates for theme lookups (#122601) 2023-03-14 17:01:13 +00:00
bottom_app_bar_template.dart Improve defaults generation with logging, stats, and token validation (#128244) 2023-06-09 11:28:18 +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 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 Improve defaults generation with logging, stats, and token validation (#128244) 2023-06-09 11:28:18 +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 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 Improve defaults generation with logging, stats, and token validation (#128244) 2023-06-09 11:28:18 +00:00
filter_chip_template.dart M3 - Fix Chip icon and label colors (#140573) 2024-01-30 16:28:31 -08:00
icon_button_template.dart Improve defaults generation with logging, stats, and token validation (#128244) 2023-06-09 11:28:18 +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 Remove more textScaleFactor references (#141816) 2024-01-20 00:27:18 +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 Add Card.filled and Card.outlined factory methods (#136229) 2023-11-01 23:29:49 +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 [Reland] #131609 (#132555) 2023-08-16 00:44:06 +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 Add textCapitalization property for SearchBar and SearchAnchor (#131459) 2023-08-08 23:24:19 +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 Add SegmentedButton.styleFrom (#137542) 2024-01-03 21:26:02 +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 Update margin between label and icon in Tab to better reflect Material specs (#140698) 2024-01-18 23:04:26 +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 Fix TimePicker token issue link (#131863) 2023-08-03 22:32:57 +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