富文本( text:TextSpan( 文字:‘新用户?’, style:TextStyle(color:Colors.grey), 儿童:< TextSpan> [ TextSpan( 文字:’签名……
TextSpan 具有 recognizer 用于点击给定小部件的属性。
TextSpan
recognizer
TextSpan( text: ' SIGN UP', style: TextStyle(color: Colors.blue), ) recognizer: TapGestureRecognizer() ..onTap = () { // do something here }), )