fix: don't use a private variable for $version
This commit is contained in:
parent
2d00e31444
commit
0ac0ea0344
|
|
@ -24,8 +24,8 @@ class _LeftMenuState extends State<LeftMenu> with PreferencesMixin {
|
||||||
super.initState();
|
super.initState();
|
||||||
fetchQuickemuVersion();
|
fetchQuickemuVersion();
|
||||||
_dropdownMenuItems = supportedLocales
|
_dropdownMenuItems = supportedLocales
|
||||||
.map((e) => DropdownMenuItem(child: Text(e), value: e))
|
.map((e) => DropdownMenuItem(value: e, child: Text(e)))
|
||||||
.toList();
|
.toList();
|
||||||
}
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
|
|
@ -54,7 +54,7 @@ class _LeftMenuState extends State<LeftMenu> with PreferencesMixin {
|
||||||
padding: EdgeInsets.only(bottom: 0).add(EdgeInsets.symmetric(horizontal: 16)),
|
padding: EdgeInsets.only(bottom: 0).add(EdgeInsets.symmetric(horizontal: 16)),
|
||||||
child: Container(
|
child: Container(
|
||||||
padding: EdgeInsets.symmetric(vertical: 4.0),
|
padding: EdgeInsets.symmetric(vertical: 4.0),
|
||||||
child: Text("Quickgui $_version",
|
child: Text("Quickgui $version",
|
||||||
style: const TextStyle(fontSize: 24.0, fontWeight: FontWeight.bold)),
|
style: const TextStyle(fontSize: 24.0, fontWeight: FontWeight.bold)),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
|
|
@ -86,7 +86,8 @@ class _LeftMenuState extends State<LeftMenu> with PreferencesMixin {
|
||||||
padding: const EdgeInsets.symmetric(horizontal: 16),
|
padding: const EdgeInsets.symmetric(horizontal: 16),
|
||||||
child: Row(
|
child: Row(
|
||||||
children: [
|
children: [
|
||||||
Text(context.t('Use dark mode'),
|
Text(
|
||||||
|
context.t('Use dark mode'),
|
||||||
style: TextStyle(
|
style: TextStyle(
|
||||||
color: Colors.grey[300],
|
color: Colors.grey[300],
|
||||||
),
|
),
|
||||||
|
|
@ -95,7 +96,8 @@ class _LeftMenuState extends State<LeftMenu> with PreferencesMixin {
|
||||||
child: Container(),
|
child: Container(),
|
||||||
),
|
),
|
||||||
Switch(
|
Switch(
|
||||||
value: Theme.of(context).colorScheme.brightness == Brightness.dark,
|
value: Theme.of(context).colorScheme.brightness ==
|
||||||
|
Brightness.dark,
|
||||||
onChanged: null,
|
onChanged: null,
|
||||||
activeColor: Colors.grey[300],
|
activeColor: Colors.grey[300],
|
||||||
activeTrackColor: Colors.grey[300],
|
activeTrackColor: Colors.grey[300],
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue