Настройки, авторизация
This commit is contained in:
@@ -3,6 +3,8 @@ import '../../domain/entities/server_config.dart';
|
||||
|
||||
part 'settings_state.freezed.dart';
|
||||
|
||||
enum ConnectionStatus { unknown, checking, connected, error }
|
||||
|
||||
@freezed
|
||||
class SettingsState with _$SettingsState {
|
||||
const factory SettingsState.initial() = SettingsInitial;
|
||||
@@ -12,6 +14,7 @@ class SettingsState with _$SettingsState {
|
||||
required ServerConfig? serverConfig,
|
||||
required String languageCode,
|
||||
String? error,
|
||||
@Default(ConnectionStatus.unknown) ConnectionStatus connectionStatus,
|
||||
}) = SettingsLoaded;
|
||||
const factory SettingsState.error(String message) = SettingsError;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user