2
0
mirror of https://github.com/inventree/inventree-app.git synced 2026-04-05 01:10:47 +00:00

Update flutter version (#805)

* Update flutter version

- 3.32.4 to 3.41.6 (stable)

* Update version and release notes

* Update to modern API
This commit is contained in:
Oliver
2026-04-03 16:28:34 +11:00
committed by GitHub
parent 83e97c56a2
commit 4d415c8fa2
7 changed files with 65 additions and 78 deletions

2
.fvmrc
View File

@@ -1,3 +1,3 @@
{ {
"flutter": "3.32.4" "flutter": "3.41.6"
} }

View File

@@ -1,3 +1,9 @@
## 0.23.0 - April 2026
---
- Fixes image artifact issues for iOS devices
- Update underlying Flutter version
## 0.22.7 - March 2026 ## 0.22.7 - March 2026
--- ---

View File

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

View File

@@ -35,50 +35,33 @@ class ThemeSelectionDialog extends StatelessWidget {
content: Column( content: Column(
mainAxisSize: MainAxisSize.min, mainAxisSize: MainAxisSize.min,
children: [ children: [
RadioListTile<AdaptiveThemeMode>( RadioGroup<AdaptiveThemeMode>(
title: Row(
children: [
Icon(TablerIcons.device_desktop),
SizedBox(width: 10),
Text("System"),
],
),
value: AdaptiveThemeMode.system,
groupValue: currentThemeMode, groupValue: currentThemeMode,
onChanged: (value) { onChanged: (value) {
AdaptiveTheme.of(context).setThemeMode(AdaptiveThemeMode.system); if (value != null) {
onThemeSelected(); AdaptiveTheme.of(context).setThemeMode(value);
onThemeSelected();
}
}, },
), child: Column(
RadioListTile<AdaptiveThemeMode>(
title: Row(
children: [ children: [
Icon(TablerIcons.sun), RadioListTile<AdaptiveThemeMode>(
SizedBox(width: 10), value: AdaptiveThemeMode.system,
Text("Light"), 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({ const Spinner({
this.color = COLOR_GRAY_LIGHT, this.color = COLOR_GRAY_LIGHT,
Key? key, Key? key,
@required this.icon, required this.icon,
this.duration = const Duration(milliseconds: 1800), this.duration = const Duration(milliseconds: 1800),
}) : super(key: key); }) : super(key: key);

View File

@@ -5,10 +5,10 @@ packages:
dependency: transitive dependency: transitive
description: description:
name: _fe_analyzer_shared name: _fe_analyzer_shared
sha256: e55636ed79578b9abca5fecf9437947798f5ef7456308b5cb85720b793eac92f sha256: "8d7ff3948166b8ec5da0fbb5962000926b8e02f2ed9b3e51d1738905fbd4c98d"
url: "https://pub.dev" url: "https://pub.dev"
source: hosted source: hosted
version: "82.0.0" version: "93.0.0"
adaptive_theme: adaptive_theme:
dependency: "direct main" dependency: "direct main"
description: description:
@@ -21,10 +21,10 @@ packages:
dependency: transitive dependency: transitive
description: description:
name: analyzer name: analyzer
sha256: "904ae5bb474d32c38fb9482e2d925d5454cda04ddd0e55d2e6826bc72f6ba8c0" sha256: de7148ed2fcec579b19f122c1800933dfa028f6d9fd38a152b04b1516cec120b
url: "https://pub.dev" url: "https://pub.dev"
source: hosted source: hosted
version: "7.4.5" version: "10.0.1"
archive: archive:
dependency: transitive dependency: transitive
description: description:
@@ -189,10 +189,10 @@ packages:
dependency: transitive dependency: transitive
description: description:
name: characters name: characters
sha256: f71061c654a3380576a52b451dd5532377954cf9dbd272a78fc8479606670803 sha256: faf38497bda5ead2a8c7615f4f7939df04333478bf32e4173fcb06d428b5716b
url: "https://pub.dev" url: "https://pub.dev"
source: hosted source: hosted
version: "1.4.0" version: "1.4.1"
checked_yaml: checked_yaml:
dependency: transitive dependency: transitive
description: description:
@@ -245,10 +245,10 @@ packages:
dependency: transitive dependency: transitive
description: description:
name: coverage name: coverage
sha256: aa07dbe5f2294c827b7edb9a87bba44a9c15a3cc81bc8da2ca19b37322d30080 sha256: "5da775aa218eaf2151c721b16c01c7676fbfdd99cebba2bf64e8b807a28ff94d"
url: "https://pub.dev" url: "https://pub.dev"
source: hosted source: hosted
version: "1.14.1" version: "1.15.0"
cross_file: cross_file:
dependency: transitive dependency: transitive
description: description:
@@ -645,14 +645,6 @@ packages:
url: "https://pub.dev" url: "https://pub.dev"
source: hosted source: hosted
version: "0.14.2" version: "0.14.2"
js:
dependency: transitive
description:
name: js
sha256: "53385261521cc4a0c4658fd0ad07a7d14591cf8fc33abbceae306ddb974888dc"
url: "https://pub.dev"
source: hosted
version: "0.7.2"
json_annotation: json_annotation:
dependency: transitive dependency: transitive
description: description:
@@ -665,26 +657,26 @@ packages:
dependency: transitive dependency: transitive
description: description:
name: leak_tracker name: leak_tracker
sha256: "6bb818ecbdffe216e81182c2f0714a2e62b593f4a4f13098713ff1685dfb6ab0" sha256: "33e2e26bdd85a0112ec15400c8cbffea70d0f9c3407491f672a2fad47915e2de"
url: "https://pub.dev" url: "https://pub.dev"
source: hosted source: hosted
version: "10.0.9" version: "11.0.2"
leak_tracker_flutter_testing: leak_tracker_flutter_testing:
dependency: transitive dependency: transitive
description: description:
name: leak_tracker_flutter_testing name: leak_tracker_flutter_testing
sha256: f8b613e7e6a13ec79cfdc0e97638fddb3ab848452eff057653abd3edba760573 sha256: "1dbc140bb5a23c75ea9c4811222756104fbcd1a27173f0c34ca01e16bea473c1"
url: "https://pub.dev" url: "https://pub.dev"
source: hosted source: hosted
version: "3.0.9" version: "3.0.10"
leak_tracker_testing: leak_tracker_testing:
dependency: transitive dependency: transitive
description: description:
name: leak_tracker_testing name: leak_tracker_testing
sha256: "6ba465d5d76e67ddf503e1161d1f4a6bc42306f9d66ca1e8f079a47290fb06d3" sha256: "8d5a2d49f4a66b49744b23b018848400d23e54caf9463f4eb20df3eb8acb2eb1"
url: "https://pub.dev" url: "https://pub.dev"
source: hosted source: hosted
version: "3.0.1" version: "3.0.2"
lint: lint:
dependency: "direct dev" dependency: "direct dev"
description: description:
@@ -713,26 +705,26 @@ packages:
dependency: transitive dependency: transitive
description: description:
name: matcher name: matcher
sha256: dc58c723c3c24bf8d3e2d3ad3f2f9d7bd9cf43ec6feaa64181775e60190153f2 sha256: dc0b7dc7651697ea4ff3e69ef44b0407ea32c487a39fff6a4004fa585e901861
url: "https://pub.dev" url: "https://pub.dev"
source: hosted source: hosted
version: "0.12.17" version: "0.12.19"
material_color_utilities: material_color_utilities:
dependency: transitive dependency: transitive
description: description:
name: material_color_utilities name: material_color_utilities
sha256: f7142bb1154231d7ea5f96bc7bde4bda2a0945d2806bb11670e30b850d56bdec sha256: "9c337007e82b1889149c82ed242ed1cb24a66044e30979c44912381e9be4c48b"
url: "https://pub.dev" url: "https://pub.dev"
source: hosted source: hosted
version: "0.11.1" version: "0.13.0"
meta: meta:
dependency: transitive dependency: transitive
description: description:
name: meta name: meta
sha256: e3641ec5d63ebf0d9b41bd43201a66e3fc79a65db5f61fc181f04cd27aab950c sha256: "23f08335362185a5ea2ad3a4e597f1375e78bce8a040df5c600c8d3552ef2394"
url: "https://pub.dev" url: "https://pub.dev"
source: hosted source: hosted
version: "1.16.0" version: "1.17.0"
mime: mime:
dependency: transitive dependency: transitive
description: description:
@@ -1166,26 +1158,26 @@ packages:
dependency: "direct dev" dependency: "direct dev"
description: description:
name: test name: test
sha256: "301b213cd241ca982e9ba50266bd3f5bd1ea33f1455554c5abb85d1be0e2d87e" sha256: "280d6d890011ca966ad08df7e8a4ddfab0fb3aa49f96ed6de56e3521347a9ae7"
url: "https://pub.dev" url: "https://pub.dev"
source: hosted source: hosted
version: "1.25.15" version: "1.30.0"
test_api: test_api:
dependency: transitive dependency: transitive
description: description:
name: test_api name: test_api
sha256: fb31f383e2ee25fbbfe06b40fe21e1e458d14080e3c67e7ba0acfde4df4e0bbd sha256: "8161c84903fd860b26bfdefb7963b3f0b68fee7adea0f59ef805ecca346f0c7a"
url: "https://pub.dev" url: "https://pub.dev"
source: hosted source: hosted
version: "0.7.4" version: "0.7.10"
test_core: test_core:
dependency: transitive dependency: transitive
description: description:
name: test_core name: test_core
sha256: "84d17c3486c8dfdbe5e12a50c8ae176d15e2a771b96909a9442b40173649ccaa" sha256: "0381bd1585d1a924763c308100f2138205252fb90c9d4eeaf28489ee65ccde51"
url: "https://pub.dev" url: "https://pub.dev"
source: hosted source: hosted
version: "0.6.8" version: "0.6.16"
typed_data: typed_data:
dependency: transitive dependency: transitive
description: description:
@@ -1270,10 +1262,10 @@ packages:
dependency: transitive dependency: transitive
description: description:
name: vector_math name: vector_math
sha256: "80b3257d1492ce4d091729e3a67a60407d227c27241d6927be0130c98e741803" sha256: d530bd74fea330e6e364cda7a85019c434070188383e1cd8d9777ee586914c5b
url: "https://pub.dev" url: "https://pub.dev"
source: hosted source: hosted
version: "2.1.4" version: "2.2.0"
vm_service: vm_service:
dependency: transitive dependency: transitive
description: description:
@@ -1379,5 +1371,5 @@ packages:
source: hosted source: hosted
version: "3.1.3" version: "3.1.3"
sdks: sdks:
dart: ">=3.8.1 <4.0.0" dart: ">=3.9.0 <4.0.0"
flutter: ">=3.29.0" flutter: ">=3.29.0"

View File

@@ -1,7 +1,7 @@
name: inventree name: inventree
description: InvenTree stock management description: InvenTree stock management
version: 0.22.7+116 version: 0.23.0+117
environment: environment:
sdk: ^3.8.1 sdk: ^3.8.1