Navigation improvements
This commit is contained in:
@@ -153,6 +153,9 @@ class _MainPageState extends TbPageState<MainPage>
|
|||||||
TbMainNavigationItem.changeItemsTitleIntl(_tabItems, context);
|
TbMainNavigationItem.changeItemsTitleIntl(_tabItems, context);
|
||||||
return WillPopScope(
|
return WillPopScope(
|
||||||
onWillPop: () async {
|
onWillPop: () async {
|
||||||
|
if (!await tbContext.willPop()) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
if (_tabController.index > 0) {
|
if (_tabController.index > 0) {
|
||||||
_setIndex(0);
|
_setIndex(0);
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
Reference in New Issue
Block a user