Rich text editor for Flutter
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.
 
 
 
 
 

22 lines
525 B

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);
}