@@ -32,6 +32,7 @@ mixin _$Settings {
32
32
ListModel get listModel => throw _privateConstructorUsedError;
33
33
String get localeCode => throw _privateConstructorUsedError;
34
34
String get themeColorLabel => throw _privateConstructorUsedError;
35
+ bool get supportDynamicColors => throw _privateConstructorUsedError;
35
36
36
37
Map <String , dynamic > toJson () => throw _privateConstructorUsedError;
37
38
@JsonKey (ignore: true )
@@ -55,7 +56,8 @@ abstract class $SettingsCopyWith<$Res> {
55
56
ReadModel readModel,
56
57
ListModel listModel,
57
58
String localeCode,
58
- String themeColorLabel});
59
+ String themeColorLabel,
60
+ bool supportDynamicColors});
59
61
}
60
62
61
63
/// @nodoc
@@ -80,6 +82,7 @@ class _$SettingsCopyWithImpl<$Res> implements $SettingsCopyWith<$Res> {
80
82
Object ? listModel = freezed,
81
83
Object ? localeCode = freezed,
82
84
Object ? themeColorLabel = freezed,
85
+ Object ? supportDynamicColors = freezed,
83
86
}) {
84
87
return _then (_value.copyWith (
85
88
isCoverBlur: isCoverBlur == freezed
@@ -130,6 +133,10 @@ class _$SettingsCopyWithImpl<$Res> implements $SettingsCopyWith<$Res> {
130
133
? _value.themeColorLabel
131
134
: themeColorLabel // ignore: cast_nullable_to_non_nullable
132
135
as String ,
136
+ supportDynamicColors: supportDynamicColors == freezed
137
+ ? _value.supportDynamicColors
138
+ : supportDynamicColors // ignore: cast_nullable_to_non_nullable
139
+ as bool ,
133
140
));
134
141
}
135
142
}
@@ -152,7 +159,8 @@ abstract class _$$_SettingsCopyWith<$Res> implements $SettingsCopyWith<$Res> {
152
159
ReadModel readModel,
153
160
ListModel listModel,
154
161
String localeCode,
155
- String themeColorLabel});
162
+ String themeColorLabel,
163
+ bool supportDynamicColors});
156
164
}
157
165
158
166
/// @nodoc
@@ -179,6 +187,7 @@ class __$$_SettingsCopyWithImpl<$Res> extends _$SettingsCopyWithImpl<$Res>
179
187
Object ? listModel = freezed,
180
188
Object ? localeCode = freezed,
181
189
Object ? themeColorLabel = freezed,
190
+ Object ? supportDynamicColors = freezed,
182
191
}) {
183
192
return _then (_$_Settings (
184
193
isCoverBlur: isCoverBlur == freezed
@@ -229,6 +238,10 @@ class __$$_SettingsCopyWithImpl<$Res> extends _$SettingsCopyWithImpl<$Res>
229
238
? _value.themeColorLabel
230
239
: themeColorLabel // ignore: cast_nullable_to_non_nullable
231
240
as String ,
241
+ supportDynamicColors: supportDynamicColors == freezed
242
+ ? _value.supportDynamicColors
243
+ : supportDynamicColors // ignore: cast_nullable_to_non_nullable
244
+ as bool ,
232
245
));
233
246
}
234
247
}
@@ -248,7 +261,8 @@ class _$_Settings extends _Settings {
248
261
this .readModel = ReadModel .leftToRight,
249
262
this .listModel = ListModel .waterfall,
250
263
this .localeCode = '' ,
251
- this .themeColorLabel = 'dynamic' })
264
+ this .themeColorLabel = ThemeConfig .dynamicThemeColorLabel,
265
+ this .supportDynamicColors = false })
252
266
: super ._();
253
267
254
268
factory _$_Settings .fromJson (Map <String , dynamic > json) =>
@@ -290,10 +304,13 @@ class _$_Settings extends _Settings {
290
304
@override
291
305
@JsonKey ()
292
306
final String themeColorLabel;
307
+ @override
308
+ @JsonKey ()
309
+ final bool supportDynamicColors;
293
310
294
311
@override
295
312
String toString () {
296
- return 'Settings(isCoverBlur: $isCoverBlur , isTagTranslate: $isTagTranslate , dynamicColor: $dynamicColor , searchSort: $searchSort , showTags: $showTags , tagLayoutOnItem: $tagLayoutOnItem , themeMode: $themeMode , fullScreenReader: $fullScreenReader , readModel: $readModel , listModel: $listModel , localeCode: $localeCode , themeColorLabel: $themeColorLabel )' ;
313
+ return 'Settings(isCoverBlur: $isCoverBlur , isTagTranslate: $isTagTranslate , dynamicColor: $dynamicColor , searchSort: $searchSort , showTags: $showTags , tagLayoutOnItem: $tagLayoutOnItem , themeMode: $themeMode , fullScreenReader: $fullScreenReader , readModel: $readModel , listModel: $listModel , localeCode: $localeCode , themeColorLabel: $themeColorLabel , supportDynamicColors: $ supportDynamicColors )' ;
297
314
}
298
315
299
316
@override
@@ -320,7 +337,9 @@ class _$_Settings extends _Settings {
320
337
const DeepCollectionEquality ()
321
338
.equals (other.localeCode, localeCode) &&
322
339
const DeepCollectionEquality ()
323
- .equals (other.themeColorLabel, themeColorLabel));
340
+ .equals (other.themeColorLabel, themeColorLabel) &&
341
+ const DeepCollectionEquality ()
342
+ .equals (other.supportDynamicColors, supportDynamicColors));
324
343
}
325
344
326
345
@JsonKey (ignore: true )
@@ -338,7 +357,8 @@ class _$_Settings extends _Settings {
338
357
const DeepCollectionEquality ().hash (readModel),
339
358
const DeepCollectionEquality ().hash (listModel),
340
359
const DeepCollectionEquality ().hash (localeCode),
341
- const DeepCollectionEquality ().hash (themeColorLabel));
360
+ const DeepCollectionEquality ().hash (themeColorLabel),
361
+ const DeepCollectionEquality ().hash (supportDynamicColors));
342
362
343
363
@JsonKey (ignore: true )
344
364
@override
@@ -366,7 +386,8 @@ abstract class _Settings extends Settings {
366
386
final ReadModel readModel,
367
387
final ListModel listModel,
368
388
final String localeCode,
369
- final String themeColorLabel}) = _$_Settings ;
389
+ final String themeColorLabel,
390
+ final bool supportDynamicColors}) = _$_Settings ;
370
391
const _Settings ._() : super ._();
371
392
372
393
factory _Settings .fromJson (Map <String , dynamic > json) = _$_Settings .fromJson;
@@ -396,6 +417,8 @@ abstract class _Settings extends Settings {
396
417
@override
397
418
String get themeColorLabel;
398
419
@override
420
+ bool get supportDynamicColors;
421
+ @override
399
422
@JsonKey (ignore: true )
400
423
_$$_SettingsCopyWith <_$_Settings > get copyWith =>
401
424
throw _privateConstructorUsedError;
0 commit comments