Настройки, авторизация

This commit is contained in:
Халимов Рустам
2026-05-14 12:06:34 +03:00
parent e8161d23d4
commit ccffc5a53c
41 changed files with 2556 additions and 1375 deletions
@@ -5,11 +5,11 @@ part 'auth_event.freezed.dart';
@freezed
class AuthEvent with _$AuthEvent {
const factory AuthEvent.started() = AuthEventStarted;
const factory AuthEvent.loginRequested(String email, String password) = AuthEventLoginRequested;
const factory AuthEvent.registerRequested(String email, String password, String name) = AuthEventRegisterRequested;
const factory AuthEvent.loginRequested(String username, String password) = AuthEventLoginRequested;
const factory AuthEvent.registerRequested(String username, String password, String name) = AuthEventRegisterRequested;
const factory AuthEvent.logoutRequested() = AuthEventLogoutRequested;
const factory AuthEvent.authChecked() = AuthEventAuthChecked;
const factory AuthEvent.emailChanged(String email) = AuthEventEmailChanged;
const factory AuthEvent.usernameChanged(String username) = AuthEventUsernameChanged;
const factory AuthEvent.passwordChanged(String password) = AuthEventPasswordChanged;
const factory AuthEvent.nameChanged(String name) = AuthEventNameChanged;
}