change theme icon of theme change
This commit is contained in:
parent
7782ab7d74
commit
56ede836b0
|
@ -48,7 +48,9 @@ class _ThemeSwitchWidgetState extends State<ThemeSwitchWidget> {
|
|||
text: "Theme",
|
||||
),
|
||||
isHeaderOfExpansion: true,
|
||||
leadingIcon: Icons.light_mode_outlined,
|
||||
leadingIcon: Theme.of(context).brightness == Brightness.light
|
||||
? Icons.light_mode_outlined
|
||||
: Icons.dark_mode_outlined,
|
||||
trailingIcon: Icons.expand_more,
|
||||
menuItemColor:
|
||||
Theme.of(context).colorScheme.enteTheme.colorScheme.fillFaint,
|
||||
|
|
Loading…
Reference in a new issue