EzWebLink constructor
EzWebLink({})
Creates a TextSpan with an external link via TapGestureRecognizer && launchUrl
See EzLink for making internal links
--- WARNING! --- Unfortunately, the context (right-click) menu will not work as expected here Current theory: the TextSpan clobbers it, but... Empathetech chose to prioritize selectable text >> context menus
Requires semanticsLabel
to enforce accessibility
Implementation
EzWebLink({
required String text,
required Uri url,
TextStyle? style,
required String semanticsLabel,
}) : super(
text: text,
recognizer: new TapGestureRecognizer()..onTap = () => launchUrl(url),
style: style,
semanticsLabel: semanticsLabel,
);