2
0
mirror of https://github.com/inventree/inventree-app.git synced 2025-06-12 02:05:29 +00:00

Yet more linting

This commit is contained in:
Oliver
2021-09-28 20:35:19 +10:00
parent ad0cc36540
commit 77bac9af36
29 changed files with 251 additions and 253 deletions

View File

@ -31,6 +31,8 @@ class LocationDisplayWidget extends StatefulWidget {
class _LocationDisplayState extends RefreshableState<LocationDisplayWidget> {
_LocationDisplayState(this.location);
final InvenTreeStockLocation? location;
@override
@ -92,8 +94,6 @@ class _LocationDisplayState extends RefreshableState<LocationDisplayWidget> {
);
}
_LocationDisplayState(this.location);
List<InvenTreeStockLocation> _sublocations = [];
String _locationFilter = "";
@ -428,10 +428,11 @@ List<Widget> detailTiles() {
class SublocationList extends StatelessWidget {
final List<InvenTreeStockLocation> _locations;
const SublocationList(this._locations);
final List<InvenTreeStockLocation> _locations;
void _openLocation(BuildContext context, int pk) {
InvenTreeStockLocation().get(pk).then((var loc) {
@ -475,10 +476,10 @@ class SublocationList extends StatelessWidget {
class PaginatedStockList extends StatefulWidget {
final Map<String, String> filters;
const PaginatedStockList(this.filters);
final Map<String, String> filters;
@override
_PaginatedStockListState createState() => _PaginatedStockListState(filters);
}
@ -486,14 +487,14 @@ class PaginatedStockList extends StatefulWidget {
class _PaginatedStockListState extends State<PaginatedStockList> {
_PaginatedStockListState(this.filters);
static const _pageSize = 25;
String _searchTerm = "";
final Map<String, String> filters;
_PaginatedStockListState(this.filters);
final PagingController<int, InvenTreeStockItem> _pagingController = PagingController(firstPageKey: 0);
@override