Open BakerKoussa opened 2 years ago
SelectableLinkify( onOpen: (link) async { print("Clicked ${link.url}!"); if (await canLaunch(link.url)) { await launch(link.url); } else { throw 'Could not launch $link'; } }, options: LinkifyOptions(humanize: false), text: widget.s.details, // 40 line text with links and emails style: TextStyle( fontSize: 18, ), ),
For some reason onOpen isn't called when the text is large (it stoped working if I Scroll the text).
SelectableLinkify( onOpen: (link) async { print("Clicked ${link.url}!"); if (await canLaunch(link.url)) { await launch(link.url); } else { throw 'Could not launch $link'; } }, options: LinkifyOptions(humanize: false), text: widget.s.details, // 40 line text with links and emails style: TextStyle( fontSize: 18, ), ),
For some reason onOpen isn't called when the text is large (it stoped working if I Scroll the text).