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

Add floating-action button to StockDetail view

This commit is contained in:
Oliver Walters 2020-04-07 11:12:45 +10:00
parent 47208155ae
commit 359b5d9b4a
3 changed files with 11 additions and 10 deletions

View File

@ -159,6 +159,11 @@ class _StockItemDisplayState extends State<StockDetailWidget> {
title: Text("Stock Item"), title: Text("Stock Item"),
), ),
drawer: new InvenTreeDrawer(context), drawer: new InvenTreeDrawer(context),
floatingActionButton: FloatingActionButton(
child: FaIcon(FontAwesomeIcons.ellipsisH),
// TODO: Add pop-up icons
// REF: https://stackoverflow.com/questions/46480221/flutter-floating-action-button-with-speed-dial#46480722
),
body: Center( body: Center(
child: ListView( child: ListView(
children: stockTiles(), children: stockTiles(),

View File

@ -225,7 +225,7 @@ packages:
name: preferences name: preferences
url: "https://pub.dartlang.org" url: "https://pub.dartlang.org"
source: hosted source: hosted
version: "5.1.0" version: "5.2.0"
qr_utils: qr_utils:
dependency: "direct main" dependency: "direct main"
description: description:

View File

@ -26,15 +26,11 @@ dependencies:
http: ^0.12.0+2 http: ^0.12.0+2
shared_preferences: ^0.5.3+1 shared_preferences: ^0.5.3+1
flutter_advanced_networkimage: any flutter_advanced_networkimage: any # Pull image from network or cache
preferences: ^5.1.0 # Persistent settings storage
preferences: ^5.1.0 qr_utils: ^0.1.4 # Barcode / QR-code support
package_info: ^0.4.0+16 # App information introspection
qr_utils: ^0.1.4 font_awesome_flutter: ^8.8.1 # FontAwesome icon set
package_info: ^0.4.0+16
font_awesome_flutter: ^8.8.1
dev_dependencies: dev_dependencies:
flutter_test: flutter_test: