Skip to content

Commit 819f04e

Browse files
QuncCcccccFlutter Material Tokens Copybara Bot
andauthored
[material_ui]Project import generated by Copybara. (#11756)
part of flutter/flutter#184950 ## Pre-Review Checklist - [x] I read the [Contributor Guide] and followed the process outlined there for submitting PRs. - [x] I read the [AI contribution guidelines] and understand my responsibilities, or I am not using AI tools. - [x] I read the [Tree Hygiene] page, which explains my responsibilities. - [x] I read and followed the [relevant style guides] and ran [the auto-formatter]. - [x] I signed the [CLA]. - [x] The title of the PR starts with the name of the package surrounded by square brackets, e.g. `[shared_preferences]` - [x] I [linked to at least one issue that this PR fixes] in the description above. - [ ] I followed [the version and CHANGELOG instructions], using [semantic versioning] and the [repository CHANGELOG style], or I have commented below to indicate which documented exception this PR falls under[^1]. - [x] I updated/added any relevant documentation (doc comments with `///`). - [ ] I added new tests to check the change I am making, or I have commented below to indicate which [test exemption] this PR falls under[^1]. - [ ] All existing and new tests are passing. If you need help, consider asking for advice on the #hackers-new channel on [Discord]. **Note**: The Flutter team is currently trialing the use of [Gemini Code Assist for GitHub](https://developers.google.com/gemini-code-assist/docs/review-github-code). Comments from the `gemini-code-assist` bot should not be taken as authoritative feedback from the Flutter team. If you find its comments useful you can update your code accordingly, but if you are unsure or disagree with the feedback, please feel free to wait for a Flutter team member's review for guidance on which automated comments should be addressed. [^1]: Regular contributors who have demonstrated familiarity with the repository guidelines only need to comment if the PR is not auto-exempted by repo tooling. <!-- Links --> [Contributor Guide]: https://github.com/flutter/packages/blob/main/CONTRIBUTING.md [AI contribution guidelines]: https://github.com/flutter/flutter/blob/main/docs/contributing/Tree-hygiene.md#ai-contribution-guidelines [Tree Hygiene]: https://github.com/flutter/flutter/blob/master/docs/contributing/Tree-hygiene.md [relevant style guides]: https://github.com/flutter/packages/blob/main/CONTRIBUTING.md#style [the auto-formatter]: https://github.com/flutter/packages/blob/main/script/tool/README.md#format-code [CLA]: https://cla.developers.google.com/ [Discord]: https://github.com/flutter/flutter/blob/master/docs/contributing/Chat.md [linked to at least one issue that this PR fixes]: https://github.com/flutter/flutter/blob/master/docs/contributing/Tree-hygiene.md#overview [the version and CHANGELOG instructions]: https://github.com/flutter/flutter/blob/master/docs/ecosystem/contributing/README.md#version-and-changelog-updates [semantic versioning]: https://dart.dev/tools/pub/versioning#semantic-versions [repository CHANGELOG style]: https://github.com/flutter/flutter/blob/master/docs/ecosystem/contributing/README.md#changelog-style [test exemption]: https://github.com/flutter/flutter/blob/master/docs/contributing/Tree-hygiene.md#tests Co-authored-by: Flutter Material Tokens Copybara Bot <[email protected]>
1 parent 79aecdd commit 819f04e

184 files changed

Lines changed: 21146 additions & 0 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
// Copyright 2013 The Flutter Authors.
2+
// Use of this source code is governed by a BSD-style license that can be
3+
// found in the LICENSE file.
4+
5+
// Version: 36.0.6
6+
7+
import 'color_role.dart';
8+
import 'shape_struct.dart';
9+
10+
class TokenAppBar {
11+
/// md.comp.app-bar.on-scroll.container.elevation
12+
static const double onScrollContainerElevation = 3.00;
13+
14+
/// md.comp.app-bar.icon-button-space
15+
static const double iconButtonSpace = 0.00;
16+
17+
/// md.comp.app-bar.container.elevation
18+
static const double containerElevation = 0.00;
19+
20+
/// md.comp.app-bar.icon.size
21+
static const double iconSize = 24.00;
22+
23+
/// md.comp.app-bar.on-scroll.container.color
24+
static const TokenColorRole onScrollContainerColor =
25+
TokenColorRole.surfaceContainer;
26+
27+
/// md.comp.app-bar.title.color
28+
static const TokenColorRole titleColor = TokenColorRole.onSurface;
29+
30+
/// md.comp.app-bar.search.container.color
31+
static const TokenColorRole searchContainerColor =
32+
TokenColorRole.surfaceContainer;
33+
34+
/// md.comp.app-bar.search.label.color
35+
static const TokenColorRole searchLabelColor =
36+
TokenColorRole.onSurfaceVariant;
37+
38+
/// md.comp.app-bar.leading-space
39+
static const double leadingSpace = 4.00;
40+
41+
/// md.comp.app-bar.search.on-scroll.container.color
42+
static const TokenColorRole searchOnScrollContainerColor =
43+
TokenColorRole.surfaceContainerHighest;
44+
45+
/// md.comp.app-bar.search.trailing-space
46+
static const double searchTrailingSpace = 8.00;
47+
48+
/// md.comp.app-bar.trailing-space
49+
static const double trailingSpace = 4.00;
50+
51+
/// md.comp.app-bar.container.shape
52+
static const ShapeStruct containerShape = ShapeStruct(
53+
family: 'SHAPE_FAMILY_ROUNDED_CORNERS',
54+
topLeft: 0.00,
55+
topRight: 0.00,
56+
bottomLeft: 0.00,
57+
bottomRight: 0.00,
58+
);
59+
60+
/// md.comp.app-bar.search.leading-space
61+
static const double searchLeadingSpace = 8.00;
62+
63+
/// md.comp.app-bar.leading-icon.color
64+
static const TokenColorRole leadingIconColor = TokenColorRole.onSurface;
65+
66+
/// md.comp.app-bar.container.color
67+
static const TokenColorRole containerColor = TokenColorRole.surface;
68+
69+
/// md.comp.app-bar.avatar.size
70+
static const double avatarSize = 32.00;
71+
72+
/// md.comp.app-bar.subtitle.color
73+
static const TokenColorRole subtitleColor = TokenColorRole.onSurfaceVariant;
74+
75+
/// md.comp.app-bar.trailing-icon.color
76+
static const TokenColorRole trailingIconColor =
77+
TokenColorRole.onSurfaceVariant;
78+
}
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
// Copyright 2013 The Flutter Authors.
2+
// Use of this source code is governed by a BSD-style license that can be
3+
// found in the LICENSE file.
4+
5+
// Version: 36.0.6
6+
7+
class TokenAppBarLarge {
8+
/// md.comp.app-bar.large.container.height
9+
static const double containerHeight = 152.00;
10+
11+
/// md.comp.app-bar.large.title.font
12+
static const double titleFontFontSize = 28.00;
13+
14+
/// md.comp.app-bar.large.title.font
15+
static const double titleFontFontWeight = 400;
16+
17+
/// md.comp.app-bar.large.title.font
18+
static const double titleFontLineHeight = 36.00;
19+
20+
/// md.comp.app-bar.large.title.font
21+
static const double titleFontLetterSpacing = 0.00;
22+
23+
/// md.comp.app-bar.large.title.font
24+
static const String titleFontFontFamily = 'Roboto';
25+
}
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
// Copyright 2013 The Flutter Authors.
2+
// Use of this source code is governed by a BSD-style license that can be
3+
// found in the LICENSE file.
4+
5+
// Version: 36.0.6
6+
7+
class TokenAppBarLargeFlexible {
8+
/// md.comp.app-bar.large-flexible.subtitle.font
9+
static const double subtitleFontFontSize = 16.00;
10+
11+
/// md.comp.app-bar.large-flexible.subtitle.font
12+
static const double subtitleFontFontWeight = 500;
13+
14+
/// md.comp.app-bar.large-flexible.subtitle.font
15+
static const double subtitleFontLineHeight = 24.00;
16+
17+
/// md.comp.app-bar.large-flexible.subtitle.font
18+
static const double subtitleFontLetterSpacing = 0.15;
19+
20+
/// md.comp.app-bar.large-flexible.subtitle.font
21+
static const String subtitleFontFontFamily = 'Roboto';
22+
23+
/// md.comp.app-bar.large-flexible.container.height
24+
static const double containerHeight = 120.00;
25+
26+
/// md.comp.app-bar.large-flexible.title.font
27+
static const double titleFontFontSize = 36.00;
28+
29+
/// md.comp.app-bar.large-flexible.title.font
30+
static const double titleFontFontWeight = 400;
31+
32+
/// md.comp.app-bar.large-flexible.title.font
33+
static const double titleFontLineHeight = 44.00;
34+
35+
/// md.comp.app-bar.large-flexible.title.font
36+
static const double titleFontLetterSpacing = 0.00;
37+
38+
/// md.comp.app-bar.large-flexible.title.font
39+
static const String titleFontFontFamily = 'Roboto';
40+
41+
/// md.comp.app-bar.large-flexible.with-subtitle.container.height
42+
static const double withSubtitleContainerHeight = 152.00;
43+
}
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
// Copyright 2013 The Flutter Authors.
2+
// Use of this source code is governed by a BSD-style license that can be
3+
// found in the LICENSE file.
4+
5+
// Version: 36.0.6
6+
7+
class TokenAppBarMedium {
8+
/// md.comp.app-bar.medium.title.font
9+
static const double titleFontFontSize = 24.00;
10+
11+
/// md.comp.app-bar.medium.title.font
12+
static const double titleFontFontWeight = 400;
13+
14+
/// md.comp.app-bar.medium.title.font
15+
static const double titleFontLineHeight = 32.00;
16+
17+
/// md.comp.app-bar.medium.title.font
18+
static const double titleFontLetterSpacing = 0.00;
19+
20+
/// md.comp.app-bar.medium.title.font
21+
static const String titleFontFontFamily = 'Roboto';
22+
23+
/// md.comp.app-bar.medium.container.height
24+
static const double containerHeight = 112.00;
25+
}
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
// Copyright 2013 The Flutter Authors.
2+
// Use of this source code is governed by a BSD-style license that can be
3+
// found in the LICENSE file.
4+
5+
// Version: 36.0.6
6+
7+
class TokenAppBarMediumFlexible {
8+
/// md.comp.app-bar.medium-flexible.container.height
9+
static const double containerHeight = 112.00;
10+
11+
/// md.comp.app-bar.medium-flexible.subtitle.font
12+
static const double subtitleFontFontSize = 14.00;
13+
14+
/// md.comp.app-bar.medium-flexible.subtitle.font
15+
static const double subtitleFontFontWeight = 500;
16+
17+
/// md.comp.app-bar.medium-flexible.subtitle.font
18+
static const double subtitleFontLineHeight = 20.00;
19+
20+
/// md.comp.app-bar.medium-flexible.subtitle.font
21+
static const double subtitleFontLetterSpacing = 0.10;
22+
23+
/// md.comp.app-bar.medium-flexible.subtitle.font
24+
static const String subtitleFontFontFamily = 'Roboto';
25+
26+
/// md.comp.app-bar.medium-flexible.title.font
27+
static const double titleFontFontSize = 28.00;
28+
29+
/// md.comp.app-bar.medium-flexible.title.font
30+
static const double titleFontFontWeight = 400;
31+
32+
/// md.comp.app-bar.medium-flexible.title.font
33+
static const double titleFontLineHeight = 36.00;
34+
35+
/// md.comp.app-bar.medium-flexible.title.font
36+
static const double titleFontLetterSpacing = 0.00;
37+
38+
/// md.comp.app-bar.medium-flexible.title.font
39+
static const String titleFontFontFamily = 'Roboto';
40+
41+
/// md.comp.app-bar.medium-flexible.with-subtitle.container.height
42+
static const double withSubtitleContainerHeight = 136.00;
43+
}
Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
// Copyright 2013 The Flutter Authors.
2+
// Use of this source code is governed by a BSD-style license that can be
3+
// found in the LICENSE file.
4+
5+
// Version: 36.0.6
6+
7+
import 'shape_struct.dart';
8+
9+
class TokenAppBarSmall {
10+
/// md.comp.app-bar.small.search.container.shape
11+
static const ShapeStruct searchContainerShape = ShapeStruct(
12+
family: 'SHAPE_FAMILY_CIRCULAR',
13+
topLeft: 0.00,
14+
topRight: 0.00,
15+
bottomLeft: 0.00,
16+
bottomRight: 0.00,
17+
);
18+
19+
/// md.comp.app-bar.small.container.height
20+
static const double containerHeight = 64.00;
21+
22+
/// md.comp.app-bar.small.search.container.height
23+
static const double searchContainerHeight = 56.00;
24+
25+
/// md.comp.app-bar.small.search.label-text.font
26+
static const double searchLabelTextFontFontSize = 16.00;
27+
28+
/// md.comp.app-bar.small.search.label-text.font
29+
static const double searchLabelTextFontFontWeight = 400;
30+
31+
/// md.comp.app-bar.small.search.label-text.font
32+
static const double searchLabelTextFontLineHeight = 24.00;
33+
34+
/// md.comp.app-bar.small.search.label-text.font
35+
static const double searchLabelTextFontLetterSpacing = 0.50;
36+
37+
/// md.comp.app-bar.small.search.label-text.font
38+
static const String searchLabelTextFontFontFamily = 'Roboto';
39+
40+
/// md.comp.app-bar.small.title.font
41+
static const double titleFontFontSize = 22.00;
42+
43+
/// md.comp.app-bar.small.title.font
44+
static const double titleFontFontWeight = 400;
45+
46+
/// md.comp.app-bar.small.title.font
47+
static const double titleFontLineHeight = 28.00;
48+
49+
/// md.comp.app-bar.small.title.font
50+
static const double titleFontLetterSpacing = 0.00;
51+
52+
/// md.comp.app-bar.small.title.font
53+
static const String titleFontFontFamily = 'Roboto';
54+
55+
/// md.comp.app-bar.small.subtitle.font
56+
static const double subtitleFontFontSize = 12.00;
57+
58+
/// md.comp.app-bar.small.subtitle.font
59+
static const double subtitleFontFontWeight = 500;
60+
61+
/// md.comp.app-bar.small.subtitle.font
62+
static const double subtitleFontLineHeight = 16.00;
63+
64+
/// md.comp.app-bar.small.subtitle.font
65+
static const double subtitleFontLetterSpacing = 0.50;
66+
67+
/// md.comp.app-bar.small.subtitle.font
68+
static const String subtitleFontFontFamily = 'Roboto';
69+
}

0 commit comments

Comments
 (0)