animated_theme_switcher icon indicating copy to clipboard operation
animated_theme_switcher copied to clipboard

Demo app loses state on Hot Reload

Open rishabh-os opened this issue 3 years ago • 1 comments

I am not sure of the cause of this, but the default example app that is provided with the library does not preserve state on hot reload. In this case, the counter value goes back to 0, which does not happen on the normal counter demo.

Is there a fix for this?

Output of flutter doctor:

Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 3.0.5, on Arch Linux 5.18.12-arch1-1, locale en_GB.UTF-8)
[✓] Android toolchain - develop for Android devices (Android SDK version 32.0.0)
[✓] Chrome - develop for the web
[✓] Linux toolchain - develop for Linux desktop
[!] Android Studio (not installed)
[✓] Connected device (2 available)
[✓] HTTP Host Availability

rishabh-os avatar Jul 24 '22 09:07 rishabh-os

same problem

Andromeda606 avatar Sep 25 '22 13:09 Andromeda606

hopefully fixed in 2.0.8

kherel avatar Mar 10 '23 18:03 kherel