mirror of
				https://github.com/inventree/inventree-app.git
				synced 2025-10-31 21:35:42 +00:00 
			
		
		
		
	Linting fixes
This commit is contained in:
		| @@ -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(); | ||||
|   | ||||
| @@ -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( | ||||
|   | ||||
| @@ -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), | ||||
|   | ||||
| @@ -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; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user