forked from eatvio/eatvio_app
fix: reg, verify, loaders, grey screen when like
This commit is contained in:
@@ -60,10 +60,11 @@ class RegistrationCubit extends Cubit<RegistrationState> {
|
||||
),
|
||||
);
|
||||
await TokenStorage.saveTokenInStorage(token);
|
||||
AppRouter.navigatorKey.currentContext?.pushNamed('verifyEmailScreen');
|
||||
await sl<FirebaseApi>().registerPushToken();
|
||||
AppRouter.navigatorKey.currentContext?.replaceNamed('verifyEmailScreen');
|
||||
} catch (e, st) {
|
||||
log(e.toString(), stackTrace: st);
|
||||
emit(RegistrationState(sheet: state.sheet, error: e.toString()));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -7,5 +7,6 @@ part 'registration_state.freezed.dart';
|
||||
abstract class RegistrationState with _$RegistrationState {
|
||||
const factory RegistrationState({
|
||||
required UserRegistrationSheet sheet,
|
||||
String? error,
|
||||
}) = _RegistrationState;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user