Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to stop clicking and changing status #85

Open
Hesham-Dev-LY opened this issue Dec 5, 2022 · 1 comment
Open

How to stop clicking and changing status #85

Hesham-Dev-LY opened this issue Dec 5, 2022 · 1 comment
Labels
enhancement New feature or request

Comments

@Hesham-Dev-LY
Copy link

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
Copy link
Owner

sooxt98 commented Feb 7, 2023

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

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

@sooxt98 sooxt98 added the enhancement New feature or request label Feb 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants