18 lines
542 B
Dart
18 lines
542 B
Dart
import "package:material_ui/material_ui.dart";
|
|
import "package:freezed_annotation/freezed_annotation.dart";
|
|
|
|
part "settings.freezed.dart";
|
|
part "settings.g.dart";
|
|
|
|
@Freezed(toJson: false, fromJson: false)
|
|
@JsonSerializable()
|
|
class const Settings({
|
|
final ThemeMode theme = ThemeMode.system,
|
|
final bool useDynamicTheming = true,
|
|
final bool linuxMobileMode = false,
|
|
}) with _$Settings {
|
|
Map<String, Object?> toJson() => _$SettingsToJson(this);
|
|
|
|
factory Settings.fromJson(Map<String, Object?> json) =>
|
|
_$SettingsFromJson(json);
|
|
}
|