Navigation improvements

This commit is contained in:
Igor Kulikov
2022-09-05 13:59:59 +03:00
parent b94f32779d
commit 349aabe12c

View File

@@ -153,6 +153,9 @@ class _MainPageState extends TbPageState<MainPage>
TbMainNavigationItem.changeItemsTitleIntl(_tabItems, context);
return WillPopScope(
onWillPop: () async {
if (!await tbContext.willPop()) {
return false;
}
if (_tabController.index > 0) {
_setIndex(0);
return false;