2
0
mirror of https://github.com/inventree/inventree-app.git synced 2025-04-27 21:16:48 +00:00

Linting fixes

This commit is contained in:
Oliver Walters 2022-07-06 21:29:26 +10:00
parent 847fda7652
commit ed2523c3c5
4 changed files with 9 additions and 15 deletions

View File

@ -1,9 +1,3 @@
/*
* A generic widget for displaying a list of attachments.
*
* To allow use with different "types" of attachments,
* we pass a subclassed instance of the InvenTreeAttachment model.
*/
import "dart:io";
@ -17,6 +11,12 @@ import "package:inventree/widget/refreshable_state.dart";
import "package:inventree/l10.dart";
import "package:url_launcher/url_launcher.dart";
/*
* A generic widget for displaying a list of attachments.
*
* To allow use with different "types" of attachments,
* we pass a subclassed instance of the InvenTreeAttachment model.
*/
class AttachmentWidget extends StatefulWidget {
const AttachmentWidget(this.attachment, this.referenceId, this.hasUploadPermission) : super();

View File

@ -1,11 +1,10 @@
import "package:flutter/material.dart";
/*
* A custom implementation of a "Back" button for display in the app drawer
* Construct a custom back button with special feature!
*
* Long-pressing on this will return the user to the home screen
*/
import "package:flutter/material.dart";
Widget backButton(BuildContext context, GlobalKey<ScaffoldState> key) {
return GestureDetector(

View File

@ -1,9 +1,7 @@
import "package:flutter/material.dart";
import "package:font_awesome_flutter/font_awesome_flutter.dart";
import "package:inventree/api.dart";
import "package:inventree/api_form.dart";
import "package:inventree/helpers.dart";
import "package:inventree/inventree/bom.dart";
import "package:inventree/l10.dart";
@ -95,7 +93,6 @@ class _PaginatedBomListState extends PaginatedSearchState<PaginatedBomList> {
InvenTreePart? subPart = bomItem.subPart;
String title = subPart?.fullname ?? "error - no name";
String description = subPart?.description ?? "error - no description";
return ListTile(
title: Text(title),

View File

@ -24,8 +24,6 @@ class PaginatedSearchState<T extends StatefulWidget> extends State<T> with BaseW
PaginatedSearchState(this.filters);
final _key = GlobalKey<ScaffoldState>();
final Map<String, String> filters;
static const _pageSize = 25;