Open lukepighetti opened 1 year ago
When theme brightness changes, the colors do not change
1. start in light mode 2. controller.play() 3. observe red 4. switch brightness to dark 5. controller.play() 6. observe red (expected blue) # <<<<<
return ConfettiWidget( colors: switch (Theme.of(context).brightness) { Brightness.light => [ Colors.red, ], Brightness.dark => [ Colors.blue, ], }, );
When theme brightness changes, the colors do not change