mirror of
https://github.com/SyncrowIOT/syncrow-app.git
synced 2025-08-26 09:49:40 +00:00
add loading indicator and state for deleting acount
This commit is contained in:
@ -198,6 +198,7 @@ class SecurityBloc extends Bloc<SecurityEvent, SecurityState> {
|
||||
|
||||
Future<void> onDeleteAccountEvent(
|
||||
DeleteAccountEvent event, Emitter<SecurityState> emit) async {
|
||||
emit(LoadingForgetState());
|
||||
try {
|
||||
await AuthenticationAPI.deleteAccount();
|
||||
emit(ChangedPassState());
|
||||
|
Reference in New Issue
Block a user