File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ class _DropDownMenuItemState extends State<DropDownMenuItem> {
40
40
trailing: DropdownButton <int >(
41
41
value: value,
42
42
onChanged: (int ? newValue) {
43
- if (newValue != null ) {
43
+ if (newValue != null && newValue != value ) {
44
44
GStorage .settings.put (widget.boxKey, newValue);
45
45
setState (() => value = newValue);
46
46
if (widget.forceAppUpdate) {
Original file line number Diff line number Diff line change @@ -122,8 +122,9 @@ class _SettingsPageState extends State<SettingsPage>
122
122
defaultValue: true ,
123
123
forceAppUpdate: true ,
124
124
),
125
- if (! GStorage .useMaterial)
126
- DropDownMenuItem (
125
+ Visibility (
126
+ visible: ! GStorage .useMaterial,
127
+ child: DropDownMenuItem (
127
128
icon: Icons .format_color_fill,
128
129
title: 'Theme Color' ,
129
130
boxKey: SettingsBoxKey .staticColor,
@@ -135,6 +136,7 @@ class _SettingsPageState extends State<SettingsPage>
135
136
.toList (),
136
137
forceAppUpdate: true ,
137
138
),
139
+ ),
138
140
const DropDownMenuItem (
139
141
icon: Icons .dark_mode_outlined,
140
142
title: 'Dark Mode' ,
You can’t perform that action at this time.
0 commit comments