From 93a8262ed553f7e07295ba907cbc9827572f6f2c Mon Sep 17 00:00:00 2001 From: "daniel.boehrs" Date: Mon, 3 Jun 2019 13:02:39 +0200 Subject: [PATCH] HOTFIX wrong text if chat search is empty --- lib/src/chatlist/chat_list_parent.dart | 2 +- lib/src/l10n/localizations.dart | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/src/chatlist/chat_list_parent.dart b/lib/src/chatlist/chat_list_parent.dart index 7696cf71..5c524ba2 100644 --- a/lib/src/chatlist/chat_list_parent.dart +++ b/lib/src/chatlist/chat_list_parent.dart @@ -273,7 +273,7 @@ class _ChatListViewState extends State with SingleTickerProvider return Center( child: Text(AppLocalizations .of(context) - .chatListEmpty), + .searchEmpty), ); } } else if (state is! ChatListStateFailure) { diff --git a/lib/src/l10n/localizations.dart b/lib/src/l10n/localizations.dart index 6098d6f4..2e60bf43 100644 --- a/lib/src/l10n/localizations.dart +++ b/lib/src/l10n/localizations.dart @@ -507,6 +507,10 @@ class AppLocalizations { String get aboutSettingsVersion => Intl.message('App version', name: 'aboutSettingsVersion'); + // Search + String get searchEmpty => Intl.message('No results found.', name: 'searchEmpty'); + + } class AppLocalizationsDelegate extends LocalizationsDelegate {