fix: reformat code / code improvements

This commit is contained in:
2026-07-30 01:46:01 +02:00
parent a732e2d07f
commit 498ad68e1c
15 changed files with 85 additions and 169 deletions
+8 -1
View File
@@ -125,7 +125,14 @@ class _BarScreenViewState extends State<BarScreenView> {
return;
}
await viewModel.addProductToSelectedTab(product);
try {
await viewModel.addProductToSelectedTab(product);
} catch (e) {
if (!context.mounted) return;
ScaffoldMessenger.of(context).showSnackBar(
SnackBar(content: Text('$e')),
);
}
},
),
),