double_back_to_close_app icon indicating copy to clipboard operation
double_back_to_close_app copied to clipboard

Double click pops instead of exiting app...

Open ssandr1kka opened this issue 3 years ago • 2 comments

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),
        ),
      ),
    );

ssandr1kka avatar Jan 24 '22 16:01 ssandr1kka

Hello?

ssandr1kka avatar Feb 05 '22 16:02 ssandr1kka

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.

hcbpassos avatar Mar 03 '22 13:03 hcbpassos