RichText(
text: TextSpan(
text: "我已認真閱讀并同意",
style: TextStyle(color: Colors.red, fontSize: 24),
children: [
TextSpan(
text: "《隱私協(xié)議》",
style: TextStyle(
color: Colors.blue,
fontSize: 30,
fontStyle: FontStyle.italic,
decoration: TextDecoration.underline),
recognizer: TapGestureRecognizer()..onTap=(){
print("點擊了5儆吉殃!");
}),
]),
)
image.png