@@ -20,7 +20,10 @@ extension BuildContextExt on BuildContext {
20
20
21
21
FlutterView get view => View .of (this );
22
22
23
- ColorScheme get color => Theme .of (this ).colorScheme;
23
+ ColorScheme get color => ColorScheme .fromSeed (
24
+ seedColor: Colors .green,
25
+ brightness: Theme .of (this ).brightness,
26
+ );
24
27
25
28
TextTheme get text => Theme .of (this ).textTheme;
26
29
}
@@ -46,153 +49,153 @@ extension TextStyleExt on TextStyle {
46
49
47
50
TextStyle get lightPrimary => copyWith (
48
51
color: ColorScheme .fromSeed (
49
- seedColor: Colors .blue ,
52
+ seedColor: Colors .green ,
50
53
).primary,
51
54
);
52
55
53
56
TextStyle get lightOnPrimary => copyWith (
54
- color: ColorScheme .fromSeed (seedColor: Colors .blue ).onPrimary,
57
+ color: ColorScheme .fromSeed (seedColor: Colors .green ).onPrimary,
55
58
);
56
59
57
60
TextStyle get lightPrimaryContainer => copyWith (
58
- color: ColorScheme .fromSeed (seedColor: Colors .blue ).primaryContainer,
61
+ color: ColorScheme .fromSeed (seedColor: Colors .green ).primaryContainer,
59
62
);
60
63
61
64
TextStyle get lightOnPrimaryContainer => copyWith (
62
65
color: ColorScheme .fromSeed (
63
- seedColor: Colors .blue ,
66
+ seedColor: Colors .green ,
64
67
).onPrimaryContainer,
65
68
);
66
69
67
70
TextStyle get lightSecondary => copyWith (
68
71
color: ColorScheme .fromSeed (
69
- seedColor: Colors .blue ,
72
+ seedColor: Colors .green ,
70
73
).secondary,
71
74
);
72
75
73
76
TextStyle get lightOnSecondary => copyWith (
74
- color: ColorScheme .fromSeed (seedColor: Colors .blue ).onSecondary,
77
+ color: ColorScheme .fromSeed (seedColor: Colors .green ).onSecondary,
75
78
);
76
79
77
80
TextStyle get lightSecondaryContainer => copyWith (
78
- color: ColorScheme .fromSeed (seedColor: Colors .blue ).secondaryContainer,
81
+ color: ColorScheme .fromSeed (seedColor: Colors .green ).secondaryContainer,
79
82
);
80
83
81
84
TextStyle get lightOnSecondaryContainer => copyWith (
82
85
color: ColorScheme .fromSeed (
83
- seedColor: Colors .blue ,
86
+ seedColor: Colors .green ,
84
87
).onSecondaryContainer,
85
88
);
86
89
87
90
TextStyle get lightTertiary => copyWith (
88
91
color: ColorScheme .fromSeed (
89
- seedColor: Colors .blue ,
92
+ seedColor: Colors .green ,
90
93
).tertiary,
91
94
);
92
95
93
96
TextStyle get lightOnTertiary => copyWith (
94
- color: ColorScheme .fromSeed (seedColor: Colors .blue ).onTertiary,
97
+ color: ColorScheme .fromSeed (seedColor: Colors .green ).onTertiary,
95
98
);
96
99
97
100
TextStyle get lightTertiaryContainer => copyWith (
98
- color: ColorScheme .fromSeed (seedColor: Colors .blue ).tertiaryContainer,
101
+ color: ColorScheme .fromSeed (seedColor: Colors .green ).tertiaryContainer,
99
102
);
100
103
101
104
TextStyle get lightOnTertiaryContainer => copyWith (
102
105
color: ColorScheme .fromSeed (
103
- seedColor: Colors .blue ,
106
+ seedColor: Colors .green ,
104
107
).onTertiaryContainer,
105
108
);
106
109
107
110
TextStyle get lightError => copyWith (
108
111
color: ColorScheme .fromSeed (
109
- seedColor: Colors .blue ,
112
+ seedColor: Colors .green ,
110
113
).error,
111
114
);
112
115
113
116
TextStyle get lightOnError => copyWith (
114
- color: ColorScheme .fromSeed (seedColor: Colors .blue ).onError,
117
+ color: ColorScheme .fromSeed (seedColor: Colors .green ).onError,
115
118
);
116
119
117
120
TextStyle get lightErrorContainer => copyWith (
118
- color: ColorScheme .fromSeed (seedColor: Colors .blue ).errorContainer,
121
+ color: ColorScheme .fromSeed (seedColor: Colors .green ).errorContainer,
119
122
);
120
123
121
124
TextStyle get lightOnErrorContainer => copyWith (
122
125
color: ColorScheme .fromSeed (
123
- seedColor: Colors .blue ,
126
+ seedColor: Colors .green ,
124
127
).onErrorContainer,
125
128
);
126
129
127
130
TextStyle get lightOutline => copyWith (
128
131
color: ColorScheme .fromSeed (
129
- seedColor: Colors .blue ,
132
+ seedColor: Colors .green ,
130
133
).outline,
131
134
);
132
135
133
136
TextStyle get lightOutlineVariant => copyWith (
134
- color: ColorScheme .fromSeed (seedColor: Colors .blue ).outlineVariant,
137
+ color: ColorScheme .fromSeed (seedColor: Colors .green ).outlineVariant,
135
138
);
136
139
137
140
TextStyle get lightBackgroundContainer => copyWith (
138
- color: ColorScheme .fromSeed (seedColor: Colors .blue ).background,
141
+ color: ColorScheme .fromSeed (seedColor: Colors .green ).background,
139
142
);
140
143
141
144
TextStyle get lightOnBackground => copyWith (
142
145
color: ColorScheme .fromSeed (
143
- seedColor: Colors .blue ,
146
+ seedColor: Colors .green ,
144
147
).onBackground,
145
148
);
146
149
147
150
TextStyle get lightSurface => copyWith (
148
151
color: ColorScheme .fromSeed (
149
- seedColor: Colors .blue ,
152
+ seedColor: Colors .green ,
150
153
).surface,
151
154
);
152
155
153
156
TextStyle get lightOnSurface => copyWith (
154
- color: ColorScheme .fromSeed (seedColor: Colors .blue ).onSurface,
157
+ color: ColorScheme .fromSeed (seedColor: Colors .green ).onSurface,
155
158
);
156
159
157
160
TextStyle get lightSurfaceVariant => copyWith (
158
- color: ColorScheme .fromSeed (seedColor: Colors .blue ).surfaceVariant,
161
+ color: ColorScheme .fromSeed (seedColor: Colors .green ).surfaceVariant,
159
162
);
160
163
161
164
TextStyle get lightOnSurfaceVariant => copyWith (
162
165
color: ColorScheme .fromSeed (
163
- seedColor: Colors .blue ,
166
+ seedColor: Colors .green ,
164
167
).onSurfaceVariant,
165
168
);
166
169
167
170
TextStyle get lightInverseSurface => copyWith (
168
171
color: ColorScheme .fromSeed (
169
- seedColor: Colors .blue ,
172
+ seedColor: Colors .green ,
170
173
).inverseSurface,
171
174
);
172
175
173
176
TextStyle get lightOnInverseSurface => copyWith (
174
- color: ColorScheme .fromSeed (seedColor: Colors .blue ).onInverseSurface,
177
+ color: ColorScheme .fromSeed (seedColor: Colors .green ).onInverseSurface,
175
178
);
176
179
177
180
TextStyle get lightInversePrimary => copyWith (
178
- color: ColorScheme .fromSeed (seedColor: Colors .blue ).inversePrimary,
181
+ color: ColorScheme .fromSeed (seedColor: Colors .green ).inversePrimary,
179
182
);
180
183
181
184
TextStyle get lightShadow => copyWith (
182
185
color: ColorScheme .fromSeed (
183
- seedColor: Colors .blue ,
186
+ seedColor: Colors .green ,
184
187
).shadow,
185
188
);
186
189
187
190
TextStyle get lightScrim => copyWith (
188
191
color: ColorScheme .fromSeed (
189
- seedColor: Colors .blue ,
192
+ seedColor: Colors .green ,
190
193
).scrim,
191
194
);
192
195
193
196
TextStyle get lightSurfaceTint => copyWith (
194
197
color: ColorScheme .fromSeed (
195
- seedColor: Colors .blue ,
198
+ seedColor: Colors .green ,
196
199
).surfaceTint,
197
200
);
198
201
}
0 commit comments