0

I have bottom navigations in my app it works well to maintain state of each screen/tabs using Offstage with stack. but for specific screen I want to not maintain the state and want to rebuild the screen when click on that nav/tab

return Offstage(
      offstage: !isSelected,
      child: TabNavigator(
        navigatorKey: navigatorKeys[selectedNav]!,
        nav: selectedNav,
      ),
    );
Alamgir Khan
  • 87
  • 1
  • 2
  • 9

0 Answers0