You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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
andisActive
properties and removingstatic
fromgetDrawerOptions()
. TheisActive
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.
The text was updated successfully, but these errors were encountered: