Closed Faith-zq closed 3 years ago
EasyRichText("哈哈60s未操作", patternList: [ EasyRichTextPattern( targetString: "60", style: TextStyle(color: Colors.blue), ), ]),
试一下
加上matchWordBoundaries: false,
默认是为英文设计的,会有word boundary,目标词是数字或字母但左右文本是中文的话,需要这样设置。
EasyRichText("哈哈60s未操作", patternList: [
EasyRichTextPattern(
targetString: "60",
matchWordBoundaries: false,
style: TextStyle(color: Colors.blue),
),
]),
Hi CivelXu, I will close this issue if you have no more feedback. You can re-open it anytime if you still have problem
可以提供细节吗?我测试是可以的。