fixes before build

This commit is contained in:
gitea
2026-08-31 16:51:31 +02:00
parent 7692809219
commit 756f9db356
34 changed files with 3542 additions and 837 deletions
+6 -7
View File
@@ -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),
],
),
),