feat: move history to admin page

This commit is contained in:
2026-08-07 05:18:51 +02:00
parent 799c1c4045
commit 66a4edacb7
3 changed files with 96 additions and 39 deletions
+23 -6
View File
@@ -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,