sooxt98 / google_nav_bar

A modern google style nav bar for flutter.
MIT License
735 stars 114 forks source link

How to stop clicking and changing status #85

Open Hesham-Dev-LY opened 1 year ago

Hesham-Dev-LY commented 1 year ago

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 .

sooxt98 commented 1 year ago

yep this can be fixed by modifying this line which prevent GNav to override GButton active state https://github.com/sooxt98/google_nav_bar/blob/97bba974147f23735f2ceaa1838bcd630eda0a39/lib/src/gnav.dart#L110