copywith y nickname

This commit is contained in:
Felipe
2024-02-22 11:56:41 -05:00
parent 113937df56
commit 37b6665002
8 changed files with 46 additions and 17 deletions
+1 -1
View File
@@ -18,7 +18,7 @@ class SignUpBloc extends Bloc<SignUpEvent, SignUpState> {
SignUpRequired event, Emitter<SignUpState> emit) async {
emit(SignUpProcess());
try {
MyUser user = await _userRepository.signUp(event.email, event.password);
MyUser user = await _userRepository.signUp(event.user, event.password);
await _userRepository.setUserData(user);
emit(SignUpSuccess());
} catch (e) {
+2 -3
View File
@@ -8,9 +8,8 @@ abstract class SignUpEvent extends Equatable {
}
class SignUpRequired extends SignUpEvent {
final String email;
final MyUser user;
final String password;
const SignUpRequired({required this.email, required this.password});
// const SignUpRequired(this.email, this.password);
const SignUpRequired(this.user, this.password);
}