diff options
author | davidpkj <davidpenkow1@gmail.com> | 2023-03-11 17:54:46 +0100 |
---|---|---|
committer | davidpkj <davidpenkow1@gmail.com> | 2023-03-11 17:54:46 +0100 |
commit | 0570147b3104eb329207ff374541d9d6797fe427 (patch) | |
tree | 41da77cffc72c8a8e9329c9dde0bff3a4c7f9ecc /lib/views/shoplist_view.dart | |
parent | c9acbf458ff90d37be76fa32aeb1a2591d87144f (diff) |
Updated code to dart analysis recommendations
Diffstat (limited to 'lib/views/shoplist_view.dart')
-rw-r--r-- | lib/views/shoplist_view.dart | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/views/shoplist_view.dart b/lib/views/shoplist_view.dart index 35332bc..638dc1b 100644 --- a/lib/views/shoplist_view.dart +++ b/lib/views/shoplist_view.dart @@ -70,11 +70,11 @@ class ShoplistViewState extends State<ShoplistView> { title: Text(ShoplistData.shoplist[index]), ), onDismissed: (_) { - String _content = AppLocalizations.of(context)!.removed; - String _actionLabel = AppLocalizations.of(context)!.undo; + String content = AppLocalizations.of(context)!.removed; + String actionLabel = AppLocalizations.of(context)!.undo; _removeItem(index); - ToastBar.showToastBar(context, _content, actionLabel: _actionLabel, actionCallback: () => _addItem(ShoplistData.removed.removeLast())); + ToastBar.showToastBar(context, content, actionLabel: actionLabel, actionCallback: () => _addItem(ShoplistData.removed.removeLast())); }, ), ); @@ -118,12 +118,12 @@ class ShoplistViewState extends State<ShoplistView> { focusNode: _focusNode, textInputAction: TextInputAction.done, onEditingComplete: () { - String _text = _controller.text.trim(); + String text = _controller.text.trim(); _closeInput(); _controller.clear(); - if (_text != "") _addItem(_text); + if (text != "") _addItem(text); }, ), ), |