double_back_to_close_app
double_back_to_close_app copied to clipboard
Double click pops instead of exiting app...
So when I double press back, it just pops the page and directs to previous one.
return Scaffold(
appBar: const HomeAppBar(),
bottomNavigationBar: const HomeNavigation(selectedIndex: 0,),
body: DoubleBackToCloseApp(
snackBar: const SnackBar(
content: Text('Tap back again to leave'),
),
child: SmartRefresher(
enablePullDown: true,
enablePullUp: true,
child: _feedViews(),
controller: _refreshController,
onLoading: () => onLoading(formBloc, _refreshController),
onRefresh: () => onRefresh(formBloc, _refreshController),
),
),
);
Hello?
sorry for the late response. i accidentally disabled my email notifications.
are you placing DoubleBackToCloseApp in your root route? if so, we may have a bug, because DoubleBackToCloseApp should not affect the other routes.
even if there is no bug, i guess we are missing a test that ensures that, so you'll mark this issue as an improvement.