From 4b146483fe8739e351aab86e1052faafac1172ae Mon Sep 17 00:00:00 2001 From: Nils-Johan Gynther Date: Wed, 22 Apr 2026 08:16:21 +0200 Subject: [PATCH] fix: update message parameter to title in EmptyStateView for better clarity --- .../inventory/presentation/consumption_history_screen.dart | 2 +- .../lib/features/inventory/presentation/inventory_screen.dart | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/flutter/lib/features/inventory/presentation/consumption_history_screen.dart b/flutter/lib/features/inventory/presentation/consumption_history_screen.dart index 17f8005d..e4dd3480 100644 --- a/flutter/lib/features/inventory/presentation/consumption_history_screen.dart +++ b/flutter/lib/features/inventory/presentation/consumption_history_screen.dart @@ -31,7 +31,7 @@ class ConsumptionHistoryScreen extends ConsumerWidget { data: (history) { if (history.isEmpty) { return const EmptyStateView( - message: 'Ingen konsumtionshistorik finns.', + title: 'Ingen konsumtionshistorik finns.', ); } return ListView.separated( diff --git a/flutter/lib/features/inventory/presentation/inventory_screen.dart b/flutter/lib/features/inventory/presentation/inventory_screen.dart index 2050c5fc..6fe87383 100644 --- a/flutter/lib/features/inventory/presentation/inventory_screen.dart +++ b/flutter/lib/features/inventory/presentation/inventory_screen.dart @@ -22,7 +22,7 @@ class InventoryScreen extends ConsumerWidget { data: (items) { if (items.isEmpty) { return EmptyStateView( - message: 'Inventariet är tomt.', + title: 'Inventariet är tomt.', action: FloatingActionButton.extended( onPressed: () => context.push('/inventory/create'), icon: const Icon(Icons.add),