diff --git a/assets/l10n/intl_en.arb b/assets/l10n/intl_en.arb index 1be249dc65..2bf3c59140 100644 --- a/assets/l10n/intl_en.arb +++ b/assets/l10n/intl_en.arb @@ -3063,5 +3063,6 @@ "switchAccounts": "Switch accounts", "selectAccount": "Select account", "privacyPolicy": "Privacy Policy", - "byContinuingYourAgreeingToOur": "By continuing, you're agreeing to our" + "byContinuingYourAgreeingToOur": "By continuing, you're agreeing to our", + "youDontHaveAnyContactsYet": "You dont have any contacts yet." } diff --git a/lib/pages/new_private_chat/widget/no_contacts_found.dart b/lib/pages/new_private_chat/widget/no_contacts_found.dart index fbb7cb5523..b7af9254ae 100644 --- a/lib/pages/new_private_chat/widget/no_contacts_found.dart +++ b/lib/pages/new_private_chat/widget/no_contacts_found.dart @@ -22,7 +22,8 @@ class NoContactsFound extends StatelessWidget { const SizedBox( height: 8.0, ), - Text.rich( + keyword != null + ? Text.rich( TextSpan( style: Theme.of(context).textTheme.bodyMedium, children: [ @@ -42,13 +43,16 @@ class NoContactsFound extends StatelessWidget { ), ], ), - ), + ) + : const SizedBox.shrink(), const SizedBox( height: 8.0, ), - const Align( + Align( alignment: Alignment.center, - child: EmptySearchWidget(), + child: keyword != null + ? const EmptySearchWidget() + : Text(L10n.of(context)!.youDontHaveAnyContactsYet), ), ], ),