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 b5baabdb6e..b5d6b495ee 100644 --- a/lib/pages/new_private_chat/widget/no_contacts_found.dart +++ b/lib/pages/new_private_chat/widget/no_contacts_found.dart @@ -10,59 +10,9 @@ class NoContactsFound extends StatelessWidget { @override Widget build(BuildContext context) { return keyword != null - ? Padding( - padding: const EdgeInsets.only(left: 8.0), - child: Column( - crossAxisAlignment: CrossAxisAlignment.start, - children: [ - Text( - L10n.of(context)!.noResultForKeyword(keyword!), - style: Theme.of(context).textTheme.titleLarge, - ), - const SizedBox( - height: 8.0, - ), - 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, - ), - ), - ], - ), - ], - ), - ), - const SizedBox( - height: 8.0, - ), - const Align( - alignment: Alignment.center, - child: EmptySearchWidget(), - ), - ], - ), + ? const Align( + alignment: Alignment.center, + child: EmptySearchWidget(), ) : SizedBox( height: MediaQuery.sizeOf(context).height * 0.7,