kdsuneraavinash / theme_provider

Easy to use, customizable and pluggable Theme Provider.
https://pub.dartlang.org/packages/theme_provider
MIT License
152 stars 28 forks source link

Hot reload build child widget tiwce #23

Open Dean-Spotec opened 2 years ago

Dean-Spotec commented 2 years ago

if I comment ThemeProvider.themeOf(context).data.splashColor it just build once. the demo you provided behave the same. image

kdsuneraavinash commented 2 years ago

Yes, I think it is building twice as expected. The first time build is with the initial theme. But when the user saved theme is loaded (from sharedprefs) and applied, it causes another rebuild.