Closed eRuaro closed 2 years ago
Looks like the fix was to directly copy the contents of deleteFromWallet
to the deleteWallet
function.
void deleteWallet(String address) async {
FlutterSecureStorage storage = FlutterSecureStorage();
emit(WalletDeleteOngoing());
await storage.delete(
key: WalletOverviewHomeScreen.walletKey + address,
);
debugPrint("Wallet with address: $address is deleted");
emit(WalletDeleteFinished());
debugPrint('Emit WalletDeleteFinished');
}
Hey! I'm trying to do navigation using
BlocListener
I have two cubits, one works whereinBlocListener
navigates to a new screen upon successful state change, while the other does not.Here's the code for the cubit that works:
While here's the code for the cubit that does not navigate to a different screen upon successful state change
I've already verified that the state changes for
WalletDeleteState
but for some reason it still doesn't navigate to a different screen, while the other cubit,WalletCreateCubit
does. That is, theBlocListener
isn't being called. How can I fix this?