fixes before build
This commit is contained in:
@@ -95,12 +95,14 @@ class _ShopLogScreenState extends State<ShopLogScreen> {
|
||||
final confirmed = await confirmAction(
|
||||
context,
|
||||
title: 'Remove shopping trip?',
|
||||
message:
|
||||
'This trip will be removed from the shop log. Products from this trip stay in your catalog.',
|
||||
message: 'This trip will be removed from the shop log. Products from this trip stay in your catalog.',
|
||||
);
|
||||
if (!confirmed || !mounted) return;
|
||||
setState(() {
|
||||
_shops = [for (final item in _shops ?? const <Shop>[]) if (item.id != shop.id) item];
|
||||
_shops = [
|
||||
for (final item in _shops ?? const <Shop>[])
|
||||
if (item.id != shop.id) item,
|
||||
];
|
||||
_productNames = Map.of(_productNames)..remove(shop.id);
|
||||
if (_shops!.isEmpty) {
|
||||
_editing = false;
|
||||
@@ -306,10 +308,7 @@ class _ShopLogBody extends StatelessWidget {
|
||||
onDeleted: () => onSelectDay(null),
|
||||
),
|
||||
if (tagFilter != null)
|
||||
InputChip(
|
||||
label: Text(tagFilter!),
|
||||
onDeleted: onClearTag,
|
||||
),
|
||||
InputChip(label: Text(tagFilter!), onDeleted: onClearTag),
|
||||
],
|
||||
),
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user