mirror of
https://github.com/HendrikRauh/inventree-app.git
synced 2026-01-13 11:36:24 +00:00
Format Code and Add Format Checks to CI (#643)
* Remove unused lib/generated/i18n.dart * Use `fvm dart format .` * Add contributing guidelines * Enforce dart format * Add `dart format off` directive to generated files
This commit is contained in:
parent
e9db6532e4
commit
4444884afa
100 changed files with 5332 additions and 5592 deletions
|
|
@ -11,12 +11,10 @@ import "package:inventree/api.dart";
|
|||
import "package:inventree/app_colors.dart";
|
||||
import "package:inventree/helpers.dart";
|
||||
|
||||
|
||||
/*
|
||||
* Base class definition for a "status code" definition.
|
||||
*/
|
||||
class InvenTreeStatusCode {
|
||||
|
||||
InvenTreeStatusCode(this.URL);
|
||||
|
||||
final String URL;
|
||||
|
|
@ -34,10 +32,7 @@ class InvenTreeStatusCode {
|
|||
dynamic _entry = data[key];
|
||||
|
||||
if (_entry is Map<String, dynamic>) {
|
||||
_choices.add({
|
||||
"value": _entry["key"],
|
||||
"display_name": _entry["label"]
|
||||
});
|
||||
_choices.add({"value": _entry["key"], "display_name": _entry["label"]});
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -46,7 +41,6 @@ class InvenTreeStatusCode {
|
|||
|
||||
// Load status code information from the server
|
||||
Future<void> load({bool forceReload = false}) async {
|
||||
|
||||
// Return internally cached data
|
||||
if (data.isNotEmpty && !forceReload) {
|
||||
return;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue