feat: add default mock data

This commit is contained in:
2026-07-30 04:01:01 +02:00
parent ae67878a3c
commit 715aa529d4
9 changed files with 242 additions and 7 deletions
+14 -6
View File
@@ -76,9 +76,16 @@ class _DevMenuViewState extends State<DevMenuView> {
onTap: vm.isLoading ? null : () => vm.clearClosedTabHistory(),
),
_Tile(
icon: Icons.inventory_2_rounded,
title: 'Reset all stock',
onTap: vm.isLoading ? null : () => vm.resetAllStock(),
icon: Icons.add_box_rounded,
title: 'Seed default products',
subtitle: 'Only seeds if table is empty',
onTap: vm.isLoading ? null : () => vm.seedDefaultProducts(),
),
_Tile(
icon: Icons.restart_alt_rounded,
title: 'Clear & reseed products',
subtitle: 'Wipes all products, then seeds defaults',
onTap: vm.isLoading ? null : () => vm.clearAndReseedProducts(),
),
_Tile(
icon: Icons.delete_forever_rounded,
@@ -86,9 +93,10 @@ class _DevMenuViewState extends State<DevMenuView> {
onTap: vm.isLoading ? null : () => vm.clearAllProducts(),
),
_Tile(
icon: Icons.add_box_rounded,
title: 'Seed demo data',
onTap: vm.isLoading ? null : () => vm.seedDemoData(),
icon: Icons.image_rounded,
title: 'Clear product images',
subtitle: 'Deletes images from product_images folder',
onTap: vm.isLoading ? null : () => vm.clearProductImages(),
),
],
),