Skip to content

Commit

Permalink
TF-1155 Change color for tag only text
Browse files Browse the repository at this point in the history
  • Loading branch information
hieutbui authored and dab246 committed Nov 9, 2023
1 parent c8eb9c4 commit ef71d63
Showing 1 changed file with 2 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
}

0 comments on commit ef71d63

Please sign in to comment.