Приложение на флаторе, настройки
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
import 'package:freezed_annotation/freezed_annotation.dart';
|
||||
|
||||
part 'settings.freezed.dart';
|
||||
// part 'settings.g.dart';
|
||||
|
||||
@freezed
|
||||
class AppSettings with _$AppSettings {
|
||||
const factory AppSettings({
|
||||
required bool notificationsEnabled,
|
||||
required bool darkModeEnabled,
|
||||
required String language,
|
||||
bool? soundEnabled,
|
||||
bool? vibrationEnabled,
|
||||
String? themeColor,
|
||||
}) = _AppSettings;
|
||||
|
||||
// factory AppSettings.fromJson(Map<String, dynamic> json) => _$AppSettingsFromJson(json);
|
||||
}
|
||||
Reference in New Issue
Block a user