new project stable version
This commit is contained in:
25
lib/presentation/state/splash_state.dart
Normal file
25
lib/presentation/state/splash_state.dart
Normal file
@@ -0,0 +1,25 @@
|
||||
import 'package:equatable/equatable.dart';
|
||||
|
||||
abstract class SplashState extends Equatable {
|
||||
const SplashState();
|
||||
|
||||
@override
|
||||
List<Object> get props => [];
|
||||
}
|
||||
|
||||
// Начальное состояние, когда мы еще не знаем, авторизован ли пользователь
|
||||
class AuthInitial extends SplashState {}
|
||||
|
||||
class AuthInProgress extends SplashState {}
|
||||
|
||||
// Пользователь успешно авторизован (токен обновлен)
|
||||
class AuthAuthenticated extends SplashState {}
|
||||
|
||||
// Пользователь не авторизован (нет токена или его не удалось обновить)
|
||||
class AuthUnauthenticated extends SplashState {}
|
||||
|
||||
// успешно ввел пин код
|
||||
class AuthPinVerified extends SplashState {}
|
||||
|
||||
// Специальное состояние для первого запуска приложения
|
||||
class AuthFirstLaunch extends SplashState {}
|
||||
Reference in New Issue
Block a user