mirror of
https://github.com/cypherstack/stack_wallet.git
synced 2025-01-10 20:54:33 +00:00
tapping android back when in main exchange view takes you to wallets overview
This commit is contained in:
parent
a67f6f97e9
commit
bc669489a4
1 changed files with 7 additions and 0 deletions
|
@ -44,6 +44,13 @@ class _HomeViewState extends ConsumerState<HomeView> {
|
|||
final _cnLoadingService = ChangeNowLoadingService();
|
||||
|
||||
Future<bool> _onWillPop() async {
|
||||
|
||||
// go to home view when tapping back on the main exchange view
|
||||
if (ref.read(homeViewPageIndexStateProvider.state).state == 1) {
|
||||
ref.read(homeViewPageIndexStateProvider.state).state = 0;
|
||||
return false;
|
||||
}
|
||||
|
||||
if (_exitEnabled) {
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue