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

Prevent AppDrawer from reloading #141

Open
pieterbergmans opened this issue Jan 4, 2022 · 0 comments
Open

Prevent AppDrawer from reloading #141

pieterbergmans opened this issue Jan 4, 2022 · 0 comments

Comments

@pieterbergmans
Copy link

Hi...I'm really digging all your tutorials! I've learned so much from you. Thank you!

I've implemented the responsive AppDrawer just as you've done here: https://www.filledstacks.com/post/building-a-responsive-ui-architecture-in-flutter/

In order to make the AppDrawerOptions navigable, I modified the model by adding route and isActive properties and removing static from getDrawerOptions(). The isActive property is a boolean and changes depending on the active route; in this way, I know which AppDrawerOption to highlight. Anyway, I'm noticing that the AppDrawer reloads on every page load. Is there a way to prevent it from reloading? Is my approach the best way to go about this?

Thanks in advance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant