Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
Front-End
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abdullh.alsoleman
Front-End
Commits
89418ef8
Unverified
Commit
89418ef8
authored
Nov 02, 2022
by
Darren Austin
Committed by
GitHub
Nov 02, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Added tokens for Snackbar widget. (#114466)
parent
475ccd4e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
39 additions
and
1 deletion
+39
-1
gen_defaults.dart
dev/tools/gen_defaults/bin/gen_defaults.dart
+5
-1
snackbar.json
dev/tools/gen_defaults/data/snackbar.json
+34
-0
No files found.
dev/tools/gen_defaults/bin/gen_defaults.dart
View file @
89418ef8
...
@@ -52,6 +52,7 @@ Map<String, dynamic> _readTokenFile(String fileName) {
...
@@ -52,6 +52,7 @@ Map<String, dynamic> _readTokenFile(String fileName) {
Future
<
void
>
main
(
List
<
String
>
args
)
async
{
Future
<
void
>
main
(
List
<
String
>
args
)
async
{
const
String
materialLib
=
'packages/flutter/lib/src/material'
;
const
String
materialLib
=
'packages/flutter/lib/src/material'
;
const
List
<
String
>
tokenFiles
=
<
String
>[
const
List
<
String
>
tokenFiles
=
<
String
>[
'badge.json'
,
'banner.json'
,
'banner.json'
,
'bottom_app_bar.json'
,
'bottom_app_bar.json'
,
'button_elevated.json'
,
'button_elevated.json'
,
...
@@ -72,8 +73,8 @@ Future<void> main(List<String> args) async {
...
@@ -72,8 +73,8 @@ Future<void> main(List<String> args) async {
'date_picker_docked.json'
,
'date_picker_docked.json'
,
'date_picker_modal.json'
,
'date_picker_modal.json'
,
'dialog.json'
,
'dialog.json'
,
'divider.json'
,
'dialog_fullscreen.json'
,
'dialog_fullscreen.json'
,
'divider.json'
,
'elevation.json'
,
'elevation.json'
,
'fab_extended_primary.json'
,
'fab_extended_primary.json'
,
'fab_large_primary.json'
,
'fab_large_primary.json'
,
...
@@ -83,11 +84,13 @@ Future<void> main(List<String> args) async {
...
@@ -83,11 +84,13 @@ Future<void> main(List<String> args) async {
'icon_button_filled.json'
,
'icon_button_filled.json'
,
'icon_button_filled_tonal.json'
,
'icon_button_filled_tonal.json'
,
'icon_button_outlined.json'
,
'icon_button_outlined.json'
,
'list.json'
,
'menu.json'
,
'menu.json'
,
'motion.json'
,
'motion.json'
,
'navigation_bar.json'
,
'navigation_bar.json'
,
'navigation_drawer.json'
,
'navigation_drawer.json'
,
'navigation_rail.json'
,
'navigation_rail.json'
,
'navigation_tab_primary.json'
,
'palette.json'
,
'palette.json'
,
'progress_indicator_circular.json'
,
'progress_indicator_circular.json'
,
'progress_indicator_linear.json'
,
'progress_indicator_linear.json'
,
...
@@ -96,6 +99,7 @@ Future<void> main(List<String> args) async {
...
@@ -96,6 +99,7 @@ Future<void> main(List<String> args) async {
'shape.json'
,
'shape.json'
,
'sheet_bottom.json'
,
'sheet_bottom.json'
,
'slider.json'
,
'slider.json'
,
'snackbar.json'
,
'state.json'
,
'state.json'
,
'switch.json'
,
'switch.json'
,
'text_field_filled.json'
,
'text_field_filled.json'
,
...
...
dev/tools/gen_defaults/data/snackbar.json
0 → 100644
View file @
89418ef8
{
"version"
:
"v0_137"
,
"md.comp.snackbar.action.focus.label-text.color"
:
"inversePrimary"
,
"md.comp.snackbar.action.focus.state-layer.color"
:
"inversePrimary"
,
"md.comp.snackbar.action.focus.state-layer.opacity"
:
"md.sys.state.focus.state-layer-opacity"
,
"md.comp.snackbar.action.hover.label-text.color"
:
"inversePrimary"
,
"md.comp.snackbar.action.hover.state-layer.color"
:
"inversePrimary"
,
"md.comp.snackbar.action.hover.state-layer.opacity"
:
"md.sys.state.hover.state-layer-opacity"
,
"md.comp.snackbar.action.label-text.color"
:
"inversePrimary"
,
"md.comp.snackbar.action.label-text.text-style"
:
"labelLarge"
,
"md.comp.snackbar.action.pressed.label-text.color"
:
"inversePrimary"
,
"md.comp.snackbar.action.pressed.state-layer.color"
:
"inversePrimary"
,
"md.comp.snackbar.action.pressed.state-layer.opacity"
:
"md.sys.state.pressed.state-layer-opacity"
,
"md.comp.snackbar.container.color"
:
"inverseSurface"
,
"md.comp.snackbar.container.elevation"
:
"md.sys.elevation.level3"
,
"md.comp.snackbar.container.shadow-color"
:
"shadow"
,
"md.comp.snackbar.container.shape"
:
"md.sys.shape.corner.extra-small"
,
"md.comp.snackbar.icon.color"
:
"inverseOnSurface"
,
"md.comp.snackbar.icon.focus.icon.color"
:
"inverseOnSurface"
,
"md.comp.snackbar.icon.focus.state-layer.color"
:
"inverseOnSurface"
,
"md.comp.snackbar.icon.focus.state-layer.opacity"
:
"md.sys.state.focus.state-layer-opacity"
,
"md.comp.snackbar.icon.hover.icon.color"
:
"inverseOnSurface"
,
"md.comp.snackbar.icon.hover.state-layer.color"
:
"inverseOnSurface"
,
"md.comp.snackbar.icon.hover.state-layer.opacity"
:
"md.sys.state.hover.state-layer-opacity"
,
"md.comp.snackbar.icon.pressed.icon.color"
:
"inverseOnSurface"
,
"md.comp.snackbar.icon.pressed.state-layer.color"
:
"inverseOnSurface"
,
"md.comp.snackbar.icon.pressed.state-layer.opacity"
:
"md.sys.state.pressed.state-layer-opacity"
,
"md.comp.snackbar.icon.size"
:
24.0
,
"md.comp.snackbar.supporting-text.color"
:
"inverseOnSurface"
,
"md.comp.snackbar.supporting-text.text-style"
:
"bodyMedium"
,
"md.comp.snackbar.with-single-line.container.height"
:
48.0
,
"md.comp.snackbar.with-two-lines.container.height"
:
68.0
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment