我有一个类似的文本‘点击搜索,我同意条款和条件,根据已定义的政策’。当用户点击“条款和条件”子字符串时,我需要检测点击。 text: 'On clicking search, I agree to the ',fontWeight: FontWeight.normal, color: Colors.whit
我使用的是一个内部有文本跨度的RichText小部件。链接(TextSpans)有一个监听点击的TapGestureRecognizer。我想要获取TextSpan中的文本,或者以某种方式获取所单击的文本跨度。该小部件的调用方式如下
EmbeddedUrlText("This is the <l>link</l>", ["https:/