2
0
mirror of https://github.com/inventree/inventree-app.git synced 2025-06-12 18:25:26 +00:00

Package updates (#365)

* Update dart version

* Update flutter version in workflow

* Update packages

* Updates to android workflow

* Specify dart verrsion in CI

* Run flutter upgrade

* Helps to check which workflow is actually running I guess

* Disable linting check

* linting fixes

* linting

* Bug fix for paginator
This commit is contained in:
Oliver
2023-06-12 22:52:07 +10:00
committed by GitHub
parent b051aeccda
commit 21ace1ae02
12 changed files with 106 additions and 84 deletions

View File

@ -79,7 +79,8 @@ Future<void> showErrorDialog(String title, {String description = "", APIResponse
switch (response.statusCode) {
case 400: // Bad request (typically bad input)
if (response.data is Map<String, dynamic>) {
for (String field in response.data.keys) {
for (String field in response.asMap().keys) {
dynamic error = response.data[field];

View File

@ -280,7 +280,8 @@ class _StockItemDisplayState extends RefreshableState<StockDetailWidget> {
},
).then((APIResponse response) {
if (response.isValid() && response.statusCode == 200) {
for (var label in response.data) {
for (var label in response.resultsList()) {
if (label is Map<String, dynamic>) {
labels.add(label);
}