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; }