@@ -89,6 +89,7 @@ enum FlutterTemplateThemeStyle {
89
89
class FlutterTemplateTheme {
90
90
final bool isDarkTheme;
91
91
final Color text;
92
+ final Color lightText;
92
93
final Color fadedText;
93
94
final Color inverseText;
94
95
final Color errorText;
@@ -111,6 +112,8 @@ class FlutterTemplateTheme {
111
112
final Color inverseButtonText;
112
113
final Color textButtonText;
113
114
final Color fillInformative;
115
+ final Color cardBackground;
116
+ final Color switchBackground;
114
117
115
118
final Color bottomNavbarBackground;
116
119
final Color bottomNavbarItemActive;
@@ -129,29 +132,29 @@ class FlutterTemplateTheme {
129
132
130
133
static final _instanceDark = FlutterTemplateTheme ._(
131
134
isDarkTheme: true ,
132
- text: ThemeColors .primary ,
133
- fadedText: ThemeColors .fadedGrey ,
135
+ text: ThemeColors .white ,
136
+ fadedText: ThemeColors .lightGrey ,
134
137
inverseText: ThemeColors .black,
135
138
errorText: ThemeColors .error,
136
139
primary: ThemeColors .primary,
137
140
accent: ThemeColors .accent,
138
141
secondary: ThemeColors .white,
139
- background: ThemeColors .black ,
142
+ background: ThemeColors .primary ,
140
143
permissionScreenBackground: ThemeColors .primary,
141
144
inverseBackground: ThemeColors .white,
142
145
disabled: ThemeColors .disabledGrey,
143
146
icon: ThemeColors .white,
144
- appBarAction: ThemeColors .primary ,
147
+ appBarAction: ThemeColors .white ,
145
148
inverseIcon: ThemeColors .black,
146
149
progressIndicator: ThemeColors .primary,
147
150
inverseProgressIndicator: ThemeColors .white,
148
151
shadow: ThemeColors .shadow,
149
152
buttonText: ThemeColors .primary,
150
153
inverseButtonText: ThemeColors .white,
151
154
buttonTextDisabled: ThemeColors .lightGrey,
152
- buttonColor: ThemeColors .white ,
155
+ buttonColor: ThemeColors .accent ,
153
156
textButtonText: ThemeColors .white,
154
- bottomNavbarBackground: ThemeColors .primary ,
157
+ bottomNavbarBackground: ThemeColors .darkBackground ,
155
158
bottomNavbarItemActive: ThemeColors .white,
156
159
bottomNavbarItemInactive: ThemeColors .white50,
157
160
inputFieldFill: ThemeColors .black,
@@ -161,7 +164,10 @@ class FlutterTemplateTheme {
161
164
inputFieldBorderIdle: ThemeColors .white50,
162
165
inputFieldCursor: ThemeColors .accent,
163
166
debugTitleBackground: ThemeColors .white20,
164
- fillInformative: ThemeColors .lightAccent,
167
+ fillInformative: ThemeColors .darkAccent,
168
+ cardBackground: ThemeColors .darkBackground,
169
+ lightText: ThemeColors .white,
170
+ switchBackground: ThemeColors .fadedGrey,
165
171
);
166
172
167
173
static final _instanceLight = FlutterTemplateTheme ._(
@@ -199,6 +205,9 @@ class FlutterTemplateTheme {
199
205
inputFieldCursor: ThemeColors .accent,
200
206
debugTitleBackground: ThemeColors .lightGrey,
201
207
fillInformative: ThemeColors .lightAccent,
208
+ cardBackground: ThemeColors .white,
209
+ lightText: ThemeColors .white,
210
+ switchBackground: ThemeColors .disabledGrey,
202
211
);
203
212
204
213
FlutterTemplateTheme ._({
@@ -236,6 +245,9 @@ class FlutterTemplateTheme {
236
245
required this .inputFieldCursor,
237
246
required this .debugTitleBackground,
238
247
required this .fillInformative,
248
+ required this .cardBackground,
249
+ required this .lightText,
250
+ required this .switchBackground,
239
251
});
240
252
241
253
static FlutterTemplateTheme of (BuildContext context, {bool forceDark = false , bool forceLight = false }) {
@@ -298,9 +310,22 @@ extension TextStyleExtension on TextStyle {
298
310
extension ShadowsExtension on Color {
299
311
List <BoxShadow > get bottomNavShadow => [
300
312
BoxShadow (
301
- spreadRadius: 8 ,
302
- blurRadius: 16 ,
303
- color: this ,
304
- )
313
+ offset: const Offset (0 , - 29 ),
314
+ spreadRadius: 0 ,
315
+ blurRadius: 29 ,
316
+ color: withOpacity (0.02 ),
317
+ ),
318
+ BoxShadow (
319
+ offset: const Offset (0 , - 65 ),
320
+ spreadRadius: 0 ,
321
+ blurRadius: 39 ,
322
+ color: withOpacity (0.01 ),
323
+ ),
324
+ BoxShadow (
325
+ offset: const Offset (0 , - 115 ),
326
+ spreadRadius: 0 ,
327
+ blurRadius: 46 ,
328
+ color: withOpacity (0.01 ),
329
+ ),
305
330
];
306
331
}
0 commit comments