Merge pull request #65 from cypherstack/ui-fixes

add back button to wallet view
This commit is contained in:
julian-CStack 2022-09-16 07:35:02 -06:00 committed by GitHub
commit b8e12e0216
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -189,7 +189,7 @@ class _WalletViewState extends ConsumerState<WalletView> {
return false;
}
void _logout() {
void _logout() async {
if (_shouldDisableAutoSyncOnLogOut) {
// disable auto sync if it was enabled only when loading wallet
ref.read(managerProvider).shouldAutoSync = false;
@ -199,7 +199,7 @@ class _WalletViewState extends ConsumerState<WalletView> {
if (ref.read(prefsChangeNotifierProvider).isAutoBackupEnabled &&
ref.read(prefsChangeNotifierProvider).backupFrequencyType ==
BackupFrequencyType.afterClosingAWallet) {
ref.read(autoSWBServiceProvider).doBackup();
unawaited(ref.read(autoSWBServiceProvider).doBackup());
}
}
@ -364,7 +364,13 @@ class _WalletViewState extends ConsumerState<WalletView> {
onWillPop: _onWillPop,
child: Scaffold(
appBar: AppBar(
automaticallyImplyLeading: false,
leading: AppBarBackButton(
onPressed: () {
_logout();
Navigator.of(context).pop();
},
),
titleSpacing: 0,
title: Row(
children: [
SvgPicture.asset(