You can solve by ๐
Future<bool> _onWillPop() async {
final isFirstRouteInCurre
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/5hklmjrm3euq5ofd084o.jpeg)ntTab =
!await _navigatorKeys[_currentTab].currentState.maybePop();
if (isFirstRouteInCurrentTab) {
if (_currentTab != TabItem.home) {
_onSelect(TabItem.home);
return false;
}
}
return isFirstRouteInCurrentTab;
}
๐ฅณ
Top comments (0)