mirror of
https://github.com/inventree/inventree-app.git
synced 2025-04-28 05:26:47 +00:00
More refactorign
This commit is contained in:
parent
2a6df373c5
commit
52d42c85c8
@ -67,3 +67,7 @@ linter:
|
|||||||
require_trailing_commas: false
|
require_trailing_commas: false
|
||||||
|
|
||||||
eol_at_end_of_file: false
|
eol_at_end_of_file: false
|
||||||
|
|
||||||
|
avoid_dynamic_calls: false
|
||||||
|
|
||||||
|
body_might_complete_normally_nullable: false
|
@ -1,4 +1,4 @@
|
|||||||
import "dart:ui";
|
|
||||||
import "dart:io";
|
import "dart:io";
|
||||||
|
|
||||||
import "package:intl/intl.dart";
|
import "package:intl/intl.dart";
|
||||||
|
@ -1,9 +1,7 @@
|
|||||||
|
|
||||||
/*
|
|
||||||
* Class for InvenTree user / login details
|
|
||||||
*/
|
|
||||||
import "package:sembast/sembast.dart";
|
import "package:sembast/sembast.dart";
|
||||||
import "preferences.dart";
|
|
||||||
|
import "package:inventree/preferences.dart";
|
||||||
|
|
||||||
class UserProfile {
|
class UserProfile {
|
||||||
|
|
||||||
|
@ -70,11 +70,9 @@ class PaginatedSearchState<T extends StatefulWidget> extends State<T> {
|
|||||||
|
|
||||||
if (page != null) {
|
if (page != null) {
|
||||||
for (var result in page.results) {
|
for (var result in page.results) {
|
||||||
if (result is InvenTreeModel) {
|
|
||||||
items.add(result);
|
items.add(result);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
if (isLastPage) {
|
if (isLastPage) {
|
||||||
_pagingController.appendLastPage(items);
|
_pagingController.appendLastPage(items);
|
||||||
|
@ -231,7 +231,7 @@ packages:
|
|||||||
source: hosted
|
source: hosted
|
||||||
version: "0.6.4"
|
version: "0.6.4"
|
||||||
flutter_cache_manager:
|
flutter_cache_manager:
|
||||||
dependency: transitive
|
dependency: "direct main"
|
||||||
description:
|
description:
|
||||||
name: flutter_cache_manager
|
name: flutter_cache_manager
|
||||||
url: "https://pub.dartlang.org"
|
url: "https://pub.dartlang.org"
|
||||||
@ -279,7 +279,7 @@ packages:
|
|||||||
name: font_awesome_flutter
|
name: font_awesome_flutter
|
||||||
url: "https://pub.dartlang.org"
|
url: "https://pub.dartlang.org"
|
||||||
source: hosted
|
source: hosted
|
||||||
version: "10.1.0"
|
version: "9.2.0"
|
||||||
http:
|
http:
|
||||||
dependency: "direct main"
|
dependency: "direct main"
|
||||||
description:
|
description:
|
||||||
|
@ -29,10 +29,9 @@ dependencies:
|
|||||||
device_info_plus: ^3.2.2 # Information about the device
|
device_info_plus: ^3.2.2 # Information about the device
|
||||||
dropdown_search: ^0.6.3 # Dropdown autocomplete form fields
|
dropdown_search: ^0.6.3 # Dropdown autocomplete form fields
|
||||||
file_picker: ^4.5.1 # Select files from the device
|
file_picker: ^4.5.1 # Select files from the device
|
||||||
|
flutter_cache_manager: ^3.3.0
|
||||||
|
|
||||||
flutter_markdown: ^0.6.9 # Rendering markdown
|
flutter_markdown: ^0.6.9 # Rendering markdown
|
||||||
font_awesome_flutter: ^10.1.0 # FontAwesome icon set
|
font_awesome_flutter: ^9.1.0 # FontAwesome icon set
|
||||||
http: ^0.13.4
|
http: ^0.13.4
|
||||||
image_picker: ^0.8.3 # Select or take photos
|
image_picker: ^0.8.3 # Select or take photos
|
||||||
infinite_scroll_pagination: ^3.1.0 # Let the server do all the work!
|
infinite_scroll_pagination: ^3.1.0 # Let the server do all the work!
|
||||||
|
Loading…
x
Reference in New Issue
Block a user