feat: add equality operators, make history screen paginated, random performance updates
This commit is contained in:
@@ -107,6 +107,12 @@ class _DevMenuViewState extends State<DevMenuView> {
|
||||
subtitle: 'Show FPS, memory, widget count',
|
||||
onTap: () => _showDebugOverlayInfo(),
|
||||
),
|
||||
_Tile(
|
||||
icon: Icons.error_outline_rounded,
|
||||
title: 'Error screen',
|
||||
subtitle: 'View the error screen UI',
|
||||
onTap: () => context.push('/error'),
|
||||
),
|
||||
],
|
||||
),
|
||||
_Section(
|
||||
@@ -141,6 +147,14 @@ class _DevMenuViewState extends State<DevMenuView> {
|
||||
subtitle: 'Set all products below threshold',
|
||||
onTap: vm.isLoading ? null : () => vm.simulateLowStock(),
|
||||
),
|
||||
_Tile(
|
||||
icon: Icons.history_rounded,
|
||||
title: 'Generate 100 mock orders',
|
||||
subtitle: 'Random customers, items, and amounts',
|
||||
onTap: vm.isLoading
|
||||
? null
|
||||
: () => vm.generateMockOrders(count: 100),
|
||||
),
|
||||
],
|
||||
),
|
||||
_Section(
|
||||
|
||||
Reference in New Issue
Block a user