From e9f5406a81dc1cbe6e560f7cee8abbbc00ddfcc4 Mon Sep 17 00:00:00 2001 From: "khaled.njim" Date: Tue, 11 Jun 2024 11:29:08 +0100 Subject: [PATCH] fixup! TW-1830 changed text when user has no contacts --- .../widget/no_contacts_found.dart | 43 +++++++++++-------- 1 file changed, 25 insertions(+), 18 deletions(-) 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 b7af9254ae..e6681ce931 100644 --- a/lib/pages/new_private_chat/widget/no_contacts_found.dart +++ b/lib/pages/new_private_chat/widget/no_contacts_found.dart @@ -24,25 +24,32 @@ class NoContactsFound extends StatelessWidget { ), keyword != null ? Text.rich( - TextSpan( - style: Theme.of(context).textTheme.bodyMedium, - children: [ - TextSpan( - children: [ - TextSpan(text: L10n.of(context)!.searchResultNotFound1), - TextSpan(text: L10n.of(context)!.searchResultNotFound2), - TextSpan(text: L10n.of(context)!.searchResultNotFound3), - TextSpan(text: L10n.of(context)!.searchResultNotFound4), - TextSpan( - text: L10n.of(context)!.searchResultNotFound5, - style: Theme.of(context).textTheme.bodyMedium?.copyWith( - color: Theme.of(context).colorScheme.primary, + TextSpan( + style: Theme.of(context).textTheme.bodyMedium, + children: [ + TextSpan( + children: [ + TextSpan( + text: L10n.of(context)!.searchResultNotFound1), + TextSpan( + text: L10n.of(context)!.searchResultNotFound2), + TextSpan( + text: L10n.of(context)!.searchResultNotFound3), + TextSpan( + text: L10n.of(context)!.searchResultNotFound4), + TextSpan( + text: L10n.of(context)!.searchResultNotFound5, + style: Theme.of(context) + .textTheme + .bodyMedium + ?.copyWith( + color: Theme.of(context).colorScheme.primary, + ), ), - ), - ], - ), - ], - ), + ], + ), + ], + ), ) : const SizedBox.shrink(), const SizedBox(