From 6ad95e23e00676c69eaa7da38d181967162da711 Mon Sep 17 00:00:00 2001 From: Martino Yovo Date: Sat, 27 May 2023 18:07:25 +0000 Subject: [PATCH] Removed yellow lines under the suggestion title and item text --- .../widgets/_search_input.dart | 20 +++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/lib/ui/screens/artifact/artifact_search/widgets/_search_input.dart b/lib/ui/screens/artifact/artifact_search/widgets/_search_input.dart index 5ea28b35..b18dd799 100644 --- a/lib/ui/screens/artifact/artifact_search/widgets/_search_input.dart +++ b/lib/ui/screens/artifact/artifact_search/widgets/_search_input.dart @@ -83,11 +83,13 @@ class _SearchInput extends StatelessWidget { margin: EdgeInsets.only(bottom: $styles.insets.xxs), decoration: BoxDecoration(border: Border(bottom: BorderSide(color: $styles.colors.greyStrong.withOpacity(0.1)))), child: CenterLeft( - child: Text( - $strings.searchInputTitleSuggestions.toUpperCase(), - overflow: TextOverflow.ellipsis, - textHeightBehavior: TextHeightBehavior(applyHeightToFirstAscent: false), + child: DefaultTextStyle( style: $styles.text.title2.copyWith(color: $styles.colors.black), + child: Text( + $strings.searchInputTitleSuggestions.toUpperCase(), + overflow: TextOverflow.ellipsis, + textHeightBehavior: TextHeightBehavior(applyHeightToFirstAscent: false), + ), ), ), ); @@ -100,11 +102,13 @@ class _SearchInput extends StatelessWidget { child: Padding( padding: EdgeInsets.all($styles.insets.xs), child: CenterLeft( - child: Text( - suggestion, - overflow: TextOverflow.ellipsis, - textHeightBehavior: TextHeightBehavior(applyHeightToFirstAscent: false), + child: DefaultTextStyle( style: $styles.text.bodySmall.copyWith(color: $styles.colors.greyStrong), + child: Text( + suggestion, + overflow: TextOverflow.ellipsis, + textHeightBehavior: TextHeightBehavior(applyHeightToFirstAscent: false), + ), ), ), ),