Cretezy / flutter_linkify

Turns text URLs and emails into clickable inline links in text for Flutter
https://pub.dartlang.org/packages/flutter_linkify
MIT License
262 stars 99 forks source link

onOpen isn't working after scrolling #98

Open BakerKoussa opened 2 years ago

BakerKoussa commented 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).