From ef71d639d59ad5f161df717462ce6d25eb91ea12 Mon Sep 17 00:00:00 2001 From: hieubt Date: Wed, 8 Nov 2023 21:51:03 +0700 Subject: [PATCH] TF-1155 Change color for tag only text --- .../autocomplete_tag_item_widget_web.dart | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/lib/features/mailbox_dashboard/presentation/widgets/advanced_search/autocomplete_tag_item_widget_web.dart b/lib/features/mailbox_dashboard/presentation/widgets/advanced_search/autocomplete_tag_item_widget_web.dart index e1f6b131ee..70d34e53e9 100644 --- a/lib/features/mailbox_dashboard/presentation/widgets/advanced_search/autocomplete_tag_item_widget_web.dart +++ b/lib/features/mailbox_dashboard/presentation/widgets/advanced_search/autocomplete_tag_item_widget_web.dart @@ -102,23 +102,16 @@ class AutoCompleteTagItemWidgetWeb extends StatelessWidget { Color _getTagBackgroundColor() { if (isLatestTagFocused && isLatestEmail) { return AppColor.colorItemRecipientSelected; - } else if (GetUtils.isEmail(currentEmailAddress.emailAddress)) { - return AppColor.colorEmailAddressTag; } else { - return Colors.white; + return AppColor.colorEmailAddressTag; } } BorderSide _getTagBorderSide() { if (isLatestTagFocused && isLatestEmail) { return const BorderSide(width: 1, color: AppColor.primaryColor); - } else if (GetUtils.isEmail(currentEmailAddress.emailAddress)) { - return BorderSide.none; } else { - return const BorderSide( - width: 1, - color: AppColor.colorBorderEmailAddressInvalid - ); + return BorderSide.none; } } }