We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3c9f118 commit 732986fCopy full SHA for 732986f
lib/config/theme_switcher_clipper.dart
@@ -31,16 +31,15 @@ class _ThemeSwitcherClipperState extends State<ThemeSwitcherClipper> {
31
width: 60,
32
height: 60,
33
child: Center(
34
- child: AnimatedSwitcher(
35
- duration: const Duration(seconds: 2),
36
- child: Icon(
37
- widget.isDarkMode ? Icons.dark_mode : Icons.light_mode,
38
- key: ValueKey<bool>(widget.isDarkMode),
39
- color: widget.isDarkMode ? Colors.white : Colors.black,
40
- size: 40,
41
- ),
+ child: AnimatedSwitcher(
+ duration: const Duration(seconds: 2),
+ child: Icon(
+ widget.isDarkMode ? Icons.dark_mode : Icons.light_mode,
+ key: UniqueKey(),
+ color: widget.isDarkMode ? Colors.white : Colors.black,
+ size: 40,
42
),
43
+ )),
44
45
46
0 commit comments