dartlangeditorflutterflutter-appsflutter-examplesflutter-packageflutter-widgetquillquill-deltaquilljsreactquillrich-textrich-text-editorwysiwygwysiwyg-editor
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
525 B
23 lines
525 B
1 year ago
|
part of 'settings_cubit.dart';
|
||
|
|
||
|
enum DefaultScreen {
|
||
|
home,
|
||
|
settings,
|
||
|
defaultSample,
|
||
|
imagesSample,
|
||
|
videosSample,
|
||
|
textSample,
|
||
|
emptySample,
|
||
|
}
|
||
|
|
||
|
@freezed
|
||
|
class SettingsState with _$SettingsState {
|
||
|
const factory SettingsState({
|
||
|
@Default(ThemeMode.system) ThemeMode themeMode,
|
||
|
@Default(DefaultScreen.home) DefaultScreen defaultScreen,
|
||
|
@Default(false) bool useCustomQuillToolbar,
|
||
|
}) = _SettingsState;
|
||
|
factory SettingsState.fromJson(Map<String, Object?> json) =>
|
||
|
_$SettingsStateFromJson(json);
|
||
|
}
|