Merge pull request #8 from inventree/master
Some checks failed
Android / build (push) Has been cancelled
CI / test (push) Has been cancelled
iOS / build (push) Has been cancelled

Update flutter version (#805)
This commit is contained in:
Hendrik Rauh 2026-04-07 20:37:11 +02:00 committed by GitHub
commit 457594685e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 65 additions and 78 deletions

View file

@ -755,6 +755,9 @@
"level": "Level",
"@level": {},
"lightMode": "Light Mode",
"@lightMode": {},
"lineItemAdd": "Add Line Item",
"@lineItemAdd": {},
@ -1628,6 +1631,9 @@
"switchCamera": "Switch Camera",
"@switchCamera": {},
"system": "System",
"@system": {},
"takePicture": "Take Picture",
"@takePicture": {},

View file

@ -35,50 +35,33 @@ class ThemeSelectionDialog extends StatelessWidget {
content: Column(
mainAxisSize: MainAxisSize.min,
children: [
RadioListTile<AdaptiveThemeMode>(
title: Row(
children: [
Icon(TablerIcons.device_desktop),
SizedBox(width: 10),
Text("System"),
],
),
value: AdaptiveThemeMode.system,
RadioGroup<AdaptiveThemeMode>(
groupValue: currentThemeMode,
onChanged: (value) {
AdaptiveTheme.of(context).setThemeMode(AdaptiveThemeMode.system);
onThemeSelected();
if (value != null) {
AdaptiveTheme.of(context).setThemeMode(value);
onThemeSelected();
}
},
),
RadioListTile<AdaptiveThemeMode>(
title: Row(
child: Column(
children: [
Icon(TablerIcons.sun),
SizedBox(width: 10),
Text("Light"),
RadioListTile<AdaptiveThemeMode>(
value: AdaptiveThemeMode.system,
title: Text(L10().system),
secondary: Icon(TablerIcons.device_desktop),
),
RadioListTile<AdaptiveThemeMode>(
value: AdaptiveThemeMode.light,
title: Text(L10().lightMode),
secondary: Icon(TablerIcons.sun),
),
RadioListTile<AdaptiveThemeMode>(
value: AdaptiveThemeMode.dark,
title: Text(L10().darkMode),
secondary: Icon(TablerIcons.moon),
),
],
),
value: AdaptiveThemeMode.light,
groupValue: currentThemeMode,
onChanged: (value) {
AdaptiveTheme.of(context).setThemeMode(AdaptiveThemeMode.light);
onThemeSelected();
},
),
RadioListTile<AdaptiveThemeMode>(
title: Row(
children: [
Icon(TablerIcons.moon),
SizedBox(width: 10),
Text("Dark"),
],
),
value: AdaptiveThemeMode.dark,
groupValue: currentThemeMode,
onChanged: (value) {
AdaptiveTheme.of(context).setThemeMode(AdaptiveThemeMode.dark);
onThemeSelected();
},
),
],
),

View file

@ -5,7 +5,7 @@ class Spinner extends StatefulWidget {
const Spinner({
this.color = COLOR_GRAY_LIGHT,
Key? key,
@required this.icon,
required this.icon,
this.duration = const Duration(milliseconds: 1800),
}) : super(key: key);