From 498cba0ac69076f4c139cdc5e7677bf6aa40036d Mon Sep 17 00:00:00 2001 From: guozhigq Date: Tue, 3 Dec 2024 23:12:57 +0800 Subject: [PATCH 1/2] fix: search suggest richText color --- lib/models/search/suggest.dart | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/lib/models/search/suggest.dart b/lib/models/search/suggest.dart index ff161476..df53d46c 100644 --- a/lib/models/search/suggest.dart +++ b/lib/models/search/suggest.dart @@ -84,10 +84,7 @@ Widget highlightText(String str) { String remainingText = str.substring(currentIndex); // 将剩余的普通文本部分添加到 children 列表中 - children.add(TextSpan( - text: remainingText, - style: DefaultTextStyle.of(Get.context!).style, - )); + children.add(TextSpan(text: remainingText)); } // 使用 Text.rich 创建包含高亮显示的富文本小部件,并返回 From c9883fc10fe0cf10ba745be236ae4cb8d252a85e Mon Sep 17 00:00:00 2001 From: guozhigq Date: Tue, 3 Dec 2024 23:41:24 +0800 Subject: [PATCH 2/2] opt: ugcSeason intro scrollable --- lib/common/pages_bottom_sheet.dart | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/lib/common/pages_bottom_sheet.dart b/lib/common/pages_bottom_sheet.dart index 434b73c4..88c7b758 100644 --- a/lib/common/pages_bottom_sheet.dart +++ b/lib/common/pages_bottom_sheet.dart @@ -766,10 +766,15 @@ class UgcSeasonBuild extends StatelessWidget { ], ), if (ugcSeason.intro != null && ugcSeason.intro != '') ...[ - const SizedBox(height: 4), - Text( - ugcSeason.intro!, - style: TextStyle(color: outline, fontSize: 12), + const SizedBox(height: 6), + Container( + constraints: const BoxConstraints(maxHeight: 100), + child: SingleChildScrollView( + child: Text( + ugcSeason.intro!, + style: TextStyle(color: outline, fontSize: 12), + ), + ), ), ], const SizedBox(height: 4),