【发布时间】:2019-06-12 09:20:27
【问题描述】:
我突出显示了这个词,但不是正确的词。
在我的 BuilderSuggection 中,我添加了这样的代码,
title: RichText(
text: TextSpan(
text: suggestList[index].d.substring(0, query.length),
style: TextStyle(
color: Colors.black, fontWeight: FontWeight.bold),
children: [
TextSpan(
text: suggestList[index].d.substring(query.length),
style: TextStyle(color: Colors.grey))
])),
【问题讨论】:
-
这个问题你看不懂吗?因为我添加了屏幕截图,您可以更好地理解。
-
这里显示了一个 UI 问题。但是家庭作业的照片是没有意义的。例如,请参阅idownvotedbecau.se/imageofcode。此处任何 text 并且可以在问题中显示为(格式化)文本的内容都应该是文本。
-
严肃地说:停止假设什么是合适的,什么不是。转到help center 并开始阅读。