From 6c7b4ea7c16947558b9cb79cb7b3bac7494fdd87 Mon Sep 17 00:00:00 2001 From: Oliver Walters Date: Sat, 26 Mar 2022 19:21:24 +1100 Subject: [PATCH] Update release notes --- analysis_options.yaml | 4 ++++ assets/release_notes.md | 1 + lib/widget/stock_detail.dart | 5 ++--- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/analysis_options.yaml b/analysis_options.yaml index 418cc57b..8727159e 100644 --- a/analysis_options.yaml +++ b/analysis_options.yaml @@ -63,3 +63,7 @@ linter: always_specify_types: false avoid_unnecessary_containers: false + + require_trailing_commas: false + + eol_at_end_of_file: false \ No newline at end of file diff --git a/assets/release_notes.md b/assets/release_notes.md index 405491a9..04335fc8 100644 --- a/assets/release_notes.md +++ b/assets/release_notes.md @@ -5,6 +5,7 @@ --- - Enables printing of stock item labels +- Allow users to manually delete stock items ### 0.5.6 - January 2022 --- diff --git a/lib/widget/stock_detail.dart b/lib/widget/stock_detail.dart index d7611787..4733674f 100644 --- a/lib/widget/stock_detail.dart +++ b/lib/widget/stock_detail.dart @@ -22,7 +22,6 @@ import "package:inventree/l10.dart"; import "package:inventree/helpers.dart"; import "package:inventree/api.dart"; import "package:inventree/api_form.dart"; -import 'package:one_context/one_context.dart'; class StockDetailWidget extends StatefulWidget { @@ -842,7 +841,7 @@ class _StockItemDisplayState extends RefreshableState { context, MaterialPageRoute( builder: (context) => StockItemTestResultsWidget(item)) - ).then((context) { + ).then((ctx) { refresh(context); }); } @@ -969,7 +968,7 @@ class _StockItemDisplayState extends RefreshableState { Navigator.push( context, MaterialPageRoute(builder: (context) => InvenTreeQRView(StockItemScanIntoLocationHandler(item))) - ).then((context) { + ).then((ctx) { refresh(context); }); },