From bc669489a4d03646763195fa1aea59541bea1c1c Mon Sep 17 00:00:00 2001 From: julian Date: Fri, 9 Sep 2022 08:11:59 -0600 Subject: [PATCH] tapping android back when in main exchange view takes you to wallets overview --- lib/pages/home_view/home_view.dart | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lib/pages/home_view/home_view.dart b/lib/pages/home_view/home_view.dart index aa29addb6..669561adf 100644 --- a/lib/pages/home_view/home_view.dart +++ b/lib/pages/home_view/home_view.dart @@ -44,6 +44,13 @@ class _HomeViewState extends ConsumerState { final _cnLoadingService = ChangeNowLoadingService(); Future _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; }