RafaelBarbosatec / hidden_drawer_menu

Hidden Drawer Menu is a library for adding a beautiful drawer mode menu feature with perspective animation.
MIT License
352 stars 55 forks source link

AppBar doesn't update on Theme Changed #33

Closed darkonnen-10101 closed 4 years ago

darkonnen-10101 commented 4 years ago

Hi. I was trying to redraw / update my AppBar backgroundColor but it doesn't rebuild itself when I toggle() my current Theme colors. AppBar only rebuilds itself with Hot Restart.

I tried:

It only rebuilds itself with the provided values when I re Run the app | Hot Restart.

How can I rebuild this HiddenDrawerMenu when the color value has changed (with Provider for state management)?

return HiddenDrawerMenu( backgroundColorAppBar: myColor, // -> This doesn't change backgroundColorMenu: myColor, // -> This works fine screens: mynewList); }

hidden_drawer.dart

Thank you, guys.

darkonnen-10101 commented 4 years ago

Solved by using full customization menu explained in the package. Thx.