You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
thanks for the suggestion ❤️ also, sorry for the late response. i accidentally disabled my email notifications.
this solution has a few downsides, though. for instance, it won't check ModalRoute.willHandlePopInternally, so if a drawer is open, it won't close before showing the toast.
WillPopScope(
onWillPop: () async {
if (exitAppTimer == null) {
exitAppTimer = Timer(Duration(seconds: 3), () {});
AppToast().show(context, '${tr('ext_app_when_tap_again')}');
} else {
if (exitAppTimer!.isActive) {
exit(0);
} else {
exitAppTimer = Timer(Duration(seconds: 3), () {});
AppToast().show(context, '${tr('ext_app_when_tap_again')}');
}
}
The text was updated successfully, but these errors were encountered: