dev #1

Merged
aefril merged 108 commits from dev into main 2026-05-15 05:52:26 +00:00
3 changed files with 5 additions and 3 deletions
Showing only changes of commit 838707becf - Show all commits

View File

@ -23,10 +23,10 @@ class LoginFormBloc extends Bloc<LoginFormEvent, LoginFormState> {
) {
return event.map(
emailChanged: (e) async {
emit(state.copyWith(email: e.email));
emit(state.copyWith(email: e.email, failureOrAuthOption: none()));
},
passwordChanged: (e) async {
emit(state.copyWith(password: e.password));
emit(state.copyWith(password: e.password, failureOrAuthOption: none()));
},
submitted: (e) async {
Either<AuthFailure, Auth>? failureOrAuth;

View File

@ -22,7 +22,7 @@ class UserEditFormBloc extends Bloc<UserEditFormEvent, UserEditFormState> {
) {
return event.map(
nameChanged: (e) async {
emit(state.copyWith(name: e.name));
emit(state.copyWith(name: e.name, failureOrUserOption: none()));
},
submitted: (e) async {
Either<UserFailure, User>? failureOrUser;

View File

@ -30,6 +30,8 @@ class _ProfileChangePasswordPageState extends State<ProfileChangePasswordPage> {
@override
Widget build(BuildContext context) {
return BlocListener<ChangePasswordFormBloc, ChangePasswordFormState>(
listenWhen: (p, c) =>
p.failureOrChangePasswordOption != c.failureOrChangePasswordOption,
listener: (context, state) {
state.failureOrChangePasswordOption.fold(
() => null,