pdfs
This commit is contained in:
@@ -7,19 +7,15 @@ part 'profile_state.dart';
|
||||
|
||||
class ProfileBloc extends Bloc<ProfileEvent, ProfileState> {
|
||||
final UserRepository _userRepository;
|
||||
// final AuthBloc _authBloc; // lo nuevo
|
||||
|
||||
ProfileBloc({
|
||||
required UserRepository userRepository,
|
||||
// required AuthBloc authBloc
|
||||
}) : _userRepository = userRepository,
|
||||
// _authBloc = authBloc,
|
||||
super(UpdateUserInfoInitial()) {
|
||||
on<UpdateUserInfo>(_onUpdateUserInfo);
|
||||
}
|
||||
|
||||
void _onUpdateUserInfo(
|
||||
UpdateUserInfo event, Emitter<ProfileState> emit) async {
|
||||
void _onUpdateUserInfo(UpdateUserInfo event, Emitter<ProfileState> emit) async {
|
||||
emit(UpdateUserInfoLoading());
|
||||
try {
|
||||
final userImageUrl = event.filePicture != null
|
||||
|
||||
Reference in New Issue
Block a user