Merge branch 'main' into design
This commit is contained in:
@ -778,10 +778,15 @@ class UgcSeasonBuild extends StatelessWidget {
|
|||||||
],
|
],
|
||||||
),
|
),
|
||||||
if (ugcSeason.intro != null && ugcSeason.intro != '') ...[
|
if (ugcSeason.intro != null && ugcSeason.intro != '') ...[
|
||||||
const SizedBox(height: 4),
|
const SizedBox(height: 6),
|
||||||
Text(
|
Container(
|
||||||
ugcSeason.intro!,
|
constraints: const BoxConstraints(maxHeight: 100),
|
||||||
style: TextStyle(color: outline, fontSize: 12),
|
child: SingleChildScrollView(
|
||||||
|
child: Text(
|
||||||
|
ugcSeason.intro!,
|
||||||
|
style: TextStyle(color: outline, fontSize: 12),
|
||||||
|
),
|
||||||
|
),
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
const SizedBox(height: 4),
|
const SizedBox(height: 4),
|
||||||
|
@ -84,10 +84,7 @@ Widget highlightText(String str) {
|
|||||||
String remainingText = str.substring(currentIndex);
|
String remainingText = str.substring(currentIndex);
|
||||||
|
|
||||||
// 将剩余的普通文本部分添加到 children 列表中
|
// 将剩余的普通文本部分添加到 children 列表中
|
||||||
children.add(TextSpan(
|
children.add(TextSpan(text: remainingText));
|
||||||
text: remainingText,
|
|
||||||
style: DefaultTextStyle.of(Get.context!).style,
|
|
||||||
));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// 使用 Text.rich 创建包含高亮显示的富文本小部件,并返回
|
// 使用 Text.rich 创建包含高亮显示的富文本小部件,并返回
|
||||||
|
Reference in New Issue
Block a user