Open augb opened 3 years ago
With 4.0.2:
With 4.1.0:
Example code where this happens:
var card = Card( shape: RoundedRectangleBorder( borderRadius: BorderRadius.circular(6.0), ), elevation: 8.0, margin: new EdgeInsets.symmetric(horizontal: paddingHorizontalValue), child: Padding( padding: const EdgeInsets.all(20.0), child: Linkify( linkStyle: TextStyle( color: Colors.blue, decoration: TextDecoration.underline, ), onOpen: _onOpen, options: LinkifyOptions( defaultToHttps: true, humanize: false, removeWww: false, excludeLastPeriod: true, looseUrl: false, ), text: 'Please visit this website for more detailed detail: https://www.google.com.', style: TextStyle(fontSize: kNormalTextSize), ), ), );
And, for completeness:
Future<void> _onOpen(LinkableElement link) async { if (await canLaunch(link.url)) { await launch(link.url); } else { throw 'Could not launch $link'; } }
With 4.0.2:
With 4.1.0:
Example code where this happens:
And, for completeness: