From 1490b6cde86b266373c4dd25eb35b7d7f0a6fd9f Mon Sep 17 00:00:00 2001 From: HuyNguyen Date: Tue, 10 Dec 2024 15:08:57 +0700 Subject: [PATCH] fixup! fixup! fixup! TW-1923: Update padding for back icon in chat search --- .../widget/no_contacts_found.dart | 56 +------------------ 1 file changed, 3 insertions(+), 53 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 b5baabdb6..b5d6b495e 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,