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

Detect links without https:// or www. Only detecting the top level domain (.com,.org,.etc) #99

Open josedavidrp opened 2 years ago

josedavidrp commented 2 years ago

Maybe there is a parameter that I couldn't find to allow this, but would be nice if there is a way to detect a link only by the .com,.org,.etc. Maybe a new parameter where you can make a list like ['com','org,'us','shop'] so if a word end in one of them like "github.com" convert it in a link.

KrisPrajapati commented 2 years ago

You can enable looseUrl by passing it in options

options: LinkifyOptions(looseUrl: true)

hunterwilhelm commented 9 months ago

Perhaps this should get added to the main Readme?

Mounix99 commented 6 months ago

It should definitely be added to the Readme, an important parameter