richLinkText method
Implementation
Widget richLinkText(
String first, String linkText, String last, String url) {
return Text.rich(TextSpan(style: TextStyle(fontSize: 28.sp), children: [
TextSpan(text: first),
TextSpan(
text: linkText,
style: TextStyle(
fontSize: 28.sp,
color: Colors.blueAccent,
decoration: TextDecoration.underline),
recognizer: TapGestureRecognizer()
..onTap = () {
launchUrl(Uri.parse(url), mode: LaunchMode.externalApplication);
}),
TextSpan(text: last),
]));
}