fix setting defaults
This commit is contained in:
parent
1ea5899791
commit
a7d5d54b88
1 changed files with 2 additions and 2 deletions
|
|
@ -6,9 +6,9 @@ part "settings.g.dart";
|
||||||
@freezed
|
@freezed
|
||||||
abstract class Settings with _$Settings {
|
abstract class Settings with _$Settings {
|
||||||
const factory Settings({
|
const factory Settings({
|
||||||
@Default(ThemeMode.light) ThemeMode theme,
|
@Default(ThemeMode.system) ThemeMode theme,
|
||||||
@Default(true) bool useDynamicTheming,
|
@Default(true) bool useDynamicTheming,
|
||||||
@Default(false) bool useSystemFont,
|
@Default(true) bool useSystemFont,
|
||||||
}) = _Settings;
|
}) = _Settings;
|
||||||
|
|
||||||
factory Settings.fromJson(Map<String, Object?> json) =>
|
factory Settings.fromJson(Map<String, Object?> json) =>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue