animated_theme_switcher icon indicating copy to clipboard operation
animated_theme_switcher copied to clipboard

App restarted when hot reload

Open AliDeeb opened this issue 3 years ago • 1 comments

AliDeeb avatar Mar 03 '22 12:03 AliDeeb

Because you defined ThemeModel inside build method in ThemeProviderState class and in every build it generates a new key. please define ThemeModel as a state to fix it.

AliDeeb avatar Mar 03 '22 13:03 AliDeeb

hopefully fixed in 2.0.8

kherel avatar Mar 10 '23 18:03 kherel