mirror of
https://github.com/inventree/inventree-app.git
synced 2025-04-28 05:26:47 +00:00
Linting fixes
This commit is contained in:
parent
847fda7652
commit
ed2523c3c5
@ -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";
|
import "dart:io";
|
||||||
|
|
||||||
@ -17,6 +11,12 @@ import "package:inventree/widget/refreshable_state.dart";
|
|||||||
import "package:inventree/l10.dart";
|
import "package:inventree/l10.dart";
|
||||||
import "package:url_launcher/url_launcher.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 {
|
class AttachmentWidget extends StatefulWidget {
|
||||||
|
|
||||||
const AttachmentWidget(this.attachment, this.referenceId, this.hasUploadPermission) : super();
|
const AttachmentWidget(this.attachment, this.referenceId, this.hasUploadPermission) : super();
|
||||||
|
@ -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
|
* Long-pressing on this will return the user to the home screen
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import "package:flutter/material.dart";
|
|
||||||
|
|
||||||
Widget backButton(BuildContext context, GlobalKey<ScaffoldState> key) {
|
Widget backButton(BuildContext context, GlobalKey<ScaffoldState> key) {
|
||||||
|
|
||||||
return GestureDetector(
|
return GestureDetector(
|
||||||
|
@ -1,9 +1,7 @@
|
|||||||
|
|
||||||
import "package:flutter/material.dart";
|
import "package:flutter/material.dart";
|
||||||
import "package:font_awesome_flutter/font_awesome_flutter.dart";
|
|
||||||
|
|
||||||
import "package:inventree/api.dart";
|
import "package:inventree/api.dart";
|
||||||
import "package:inventree/api_form.dart";
|
|
||||||
import "package:inventree/helpers.dart";
|
import "package:inventree/helpers.dart";
|
||||||
import "package:inventree/inventree/bom.dart";
|
import "package:inventree/inventree/bom.dart";
|
||||||
import "package:inventree/l10.dart";
|
import "package:inventree/l10.dart";
|
||||||
@ -95,7 +93,6 @@ class _PaginatedBomListState extends PaginatedSearchState<PaginatedBomList> {
|
|||||||
InvenTreePart? subPart = bomItem.subPart;
|
InvenTreePart? subPart = bomItem.subPart;
|
||||||
|
|
||||||
String title = subPart?.fullname ?? "error - no name";
|
String title = subPart?.fullname ?? "error - no name";
|
||||||
String description = subPart?.description ?? "error - no description";
|
|
||||||
|
|
||||||
return ListTile(
|
return ListTile(
|
||||||
title: Text(title),
|
title: Text(title),
|
||||||
|
@ -24,8 +24,6 @@ class PaginatedSearchState<T extends StatefulWidget> extends State<T> with BaseW
|
|||||||
|
|
||||||
PaginatedSearchState(this.filters);
|
PaginatedSearchState(this.filters);
|
||||||
|
|
||||||
final _key = GlobalKey<ScaffoldState>();
|
|
||||||
|
|
||||||
final Map<String, String> filters;
|
final Map<String, String> filters;
|
||||||
|
|
||||||
static const _pageSize = 25;
|
static const _pageSize = 25;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user