sooxt98/google_nav_bar

How to stop clicking and changing status

Hesham-Dev-LY opened this issue · 1 comments

I am trying to prevent the user from entering screen number 2, and I succeeded in that by controlling the screenIndex variable , but in all cases the nav button is activated and its state changes! .
How can I prevent the nav but from changing its state.
Note : i already tried to set active to false .

yep this can be fixed by modifying this line which prevent GNav to override GButton active state

active: selectedIndex == widget.tabs.indexOf(t),