feat: add alot

This commit is contained in:
2026-10-08 04:12:36 +02:00
parent ccf5165417
commit fc607cb7bd
99 changed files with 4981 additions and 3655 deletions
+6 -6
View File
@@ -1,15 +1,15 @@
import 'package:flutter/material.dart';
import 'package:kooltab2/views/widgets/closed_tab_card.dart';
import 'package:kooltab2/views/widgets/open_tab_history_card.dart';
import 'package:provider/provider.dart';
import '../app/router.dart';
import '../l10n/app_localizations.dart';
import '../l10n/app_localizations_helpers.dart';
import '../models/bar_tab.dart';
import '../models/closed_tab.dart';
import '../utils/navigation.dart';
import '../viewmodels/history_view_model.dart';
import '../l10n/app_localizations.dart';
import '../l10n/app_localizations_helpers.dart';
import 'widgets/closed_tab_card.dart';
import 'widgets/open_tab_history_card.dart';
class HistoryScreenView extends StatefulWidget {
const HistoryScreenView({super.key});
@@ -87,7 +87,7 @@ class _HistoryScreenViewState extends State<HistoryScreenView> with RouteAware {
);
}
if (viewModel.errorMessage != null) {
if (viewModel.error != null) {
return Center(
child: Padding(
padding: const EdgeInsets.all(24),
@@ -101,7 +101,7 @@ class _HistoryScreenViewState extends State<HistoryScreenView> with RouteAware {
),
const SizedBox(height: 12),
Text(
l10n.localizedError(viewModel.errorMessage),
l10n.errorText(viewModel.error),
textAlign: TextAlign.center,
style: Theme.of(context).textTheme.bodyLarge,
),