feat: add default mock data
This commit is contained in:
@@ -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(),
|
||||
),
|
||||
],
|
||||
),
|
||||
|
||||
Reference in New Issue
Block a user