copywith y nickname
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user