mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2024-11-17 01:37:54 +00:00
add back button to wallet view
This commit is contained in:
parent
8bcd155967
commit
af3c5c896a
1 changed files with 9 additions and 3 deletions
|
@ -189,7 +189,7 @@ class _WalletViewState extends ConsumerState<WalletView> {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
void _logout() {
|
void _logout() async {
|
||||||
if (_shouldDisableAutoSyncOnLogOut) {
|
if (_shouldDisableAutoSyncOnLogOut) {
|
||||||
// disable auto sync if it was enabled only when loading wallet
|
// disable auto sync if it was enabled only when loading wallet
|
||||||
ref.read(managerProvider).shouldAutoSync = false;
|
ref.read(managerProvider).shouldAutoSync = false;
|
||||||
|
@ -199,7 +199,7 @@ class _WalletViewState extends ConsumerState<WalletView> {
|
||||||
if (ref.read(prefsChangeNotifierProvider).isAutoBackupEnabled &&
|
if (ref.read(prefsChangeNotifierProvider).isAutoBackupEnabled &&
|
||||||
ref.read(prefsChangeNotifierProvider).backupFrequencyType ==
|
ref.read(prefsChangeNotifierProvider).backupFrequencyType ==
|
||||||
BackupFrequencyType.afterClosingAWallet) {
|
BackupFrequencyType.afterClosingAWallet) {
|
||||||
ref.read(autoSWBServiceProvider).doBackup();
|
unawaited(ref.read(autoSWBServiceProvider).doBackup());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -364,7 +364,13 @@ class _WalletViewState extends ConsumerState<WalletView> {
|
||||||
onWillPop: _onWillPop,
|
onWillPop: _onWillPop,
|
||||||
child: Scaffold(
|
child: Scaffold(
|
||||||
appBar: AppBar(
|
appBar: AppBar(
|
||||||
automaticallyImplyLeading: false,
|
leading: AppBarBackButton(
|
||||||
|
onPressed: () {
|
||||||
|
_logout();
|
||||||
|
Navigator.of(context).pop();
|
||||||
|
},
|
||||||
|
),
|
||||||
|
titleSpacing: 0,
|
||||||
title: Row(
|
title: Row(
|
||||||
children: [
|
children: [
|
||||||
SvgPicture.asset(
|
SvgPicture.asset(
|
||||||
|
|
Loading…
Reference in a new issue