fix: update message parameter to title in EmptyStateView for better clarity
This commit is contained in:
@@ -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(
|
||||
|
||||
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user