feat: move history to admin page
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
import 'package:flutter/foundation.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
import 'package:go_router/go_router.dart';
|
||||
import 'package:kooltab2/viewmodels/admin_pin_view_model.dart';
|
||||
@@ -57,12 +58,28 @@ class _BarScreenViewState extends State<BarScreenView> {
|
||||
onPressed: () => context.push('/admin'),
|
||||
icon: const Icon(Icons.admin_panel_settings_outlined),
|
||||
),
|
||||
const SizedBox(width: 6),
|
||||
IconButton(
|
||||
tooltip: l10n.tabHistory,
|
||||
onPressed: () => context.push('/history'),
|
||||
icon: const Icon(Icons.history_rounded),
|
||||
),
|
||||
if (kDebugMode) ...[
|
||||
const SizedBox(width: 6),
|
||||
IconButton(
|
||||
tooltip: l10n.manageProducts,
|
||||
style: IconButton.styleFrom(
|
||||
backgroundColor: Colors.yellow,
|
||||
foregroundColor: Colors.black,
|
||||
),
|
||||
onPressed: () => context.push('/products'),
|
||||
icon: const Icon(Icons.inventory_2_outlined),
|
||||
),
|
||||
const SizedBox(width: 6),
|
||||
IconButton(
|
||||
tooltip: l10n.tabHistory,
|
||||
style: IconButton.styleFrom(
|
||||
backgroundColor: Colors.yellow,
|
||||
foregroundColor: Colors.black,
|
||||
),
|
||||
onPressed: () => context.push('/history'),
|
||||
icon: const Icon(Icons.history_rounded),
|
||||
),
|
||||
],
|
||||
const SizedBox(width: 6),
|
||||
IconButton(
|
||||
tooltip: l10n.refresh,
|
||||
|
||||
Reference in New Issue
Block a user