From 359b5d9b4ae0ce6121ff17f29c3aecb55f777b11 Mon Sep 17 00:00:00 2001 From: Oliver Walters Date: Tue, 7 Apr 2020 11:12:45 +1000 Subject: [PATCH] Add floating-action button to StockDetail view --- lib/widget/stock_detail.dart | 5 +++++ pubspec.lock | 2 +- pubspec.yaml | 14 +++++--------- 3 files changed, 11 insertions(+), 10 deletions(-) diff --git a/lib/widget/stock_detail.dart b/lib/widget/stock_detail.dart index 507cb72a..feb93548 100644 --- a/lib/widget/stock_detail.dart +++ b/lib/widget/stock_detail.dart @@ -159,6 +159,11 @@ class _StockItemDisplayState extends State { title: Text("Stock Item"), ), 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( child: ListView( children: stockTiles(), diff --git a/pubspec.lock b/pubspec.lock index dde8775c..da7e2374 100644 --- a/pubspec.lock +++ b/pubspec.lock @@ -225,7 +225,7 @@ packages: name: preferences url: "https://pub.dartlang.org" source: hosted - version: "5.1.0" + version: "5.2.0" qr_utils: dependency: "direct main" description: diff --git a/pubspec.yaml b/pubspec.yaml index 2a381194..175e6ae7 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -26,15 +26,11 @@ dependencies: http: ^0.12.0+2 shared_preferences: ^0.5.3+1 - flutter_advanced_networkimage: any - - preferences: ^5.1.0 - - qr_utils: ^0.1.4 - - package_info: ^0.4.0+16 - - font_awesome_flutter: ^8.8.1 + flutter_advanced_networkimage: any # Pull image from network or cache + preferences: ^5.1.0 # Persistent settings storage + qr_utils: ^0.1.4 # Barcode / QR-code support + package_info: ^0.4.0+16 # App information introspection + font_awesome_flutter: ^8.8.1 # FontAwesome icon set dev_dependencies: flutter_test: