2
0
mirror of https://github.com/inventree/inventree-app.git synced 2025-07-04 04:40:51 +00:00

Package updates ()

* 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

@ -538,13 +538,7 @@ class APIFormField {
final APIResponse response = await InvenTreeAPI().get(api_url, params: _filters);
if (response.isValid()) {
List<dynamic> results = [];
for (var result in response.data["results"] ?? []) {
results.add(result);
}
return results;
return response.resultsList();
} else {
return [];
}
@ -1334,10 +1328,10 @@ class _APIFormWidgetState extends State<APIFormWidget> {
// Ensure the response is a valid JSON structure
Map<String, dynamic> json = {};
if (response.data != null && response.data is Map) {
for (dynamic key in response.data.keys) {
json[key.toString()] = response.data[key];
}
var data = response.asMap();
for (String key in data.keys) {
json[key.toString()] = data[key];
}
successFunc(json);