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

Prevent text altering for hyperlinks #121

Open Shubham-VE opened 1 year ago

Shubham-VE commented 1 year ago

I am using Linkify to parse user messages but when user enters text like

https://pub.dev/packages/flutter_linkify
http://example.com
Dummy text: www.google.com google.com

the http(s):// part is removed and the text is converted to

pub.dev/packages/flutter_linkify
example.com
Dummy text: www.google.com google.com

And on disabling humanize:

https://pub.dev/packages/flutter_linkify
http://example.com
Dummy text: https://www.google.com  https://google.com

I want the text to look as it is, that is, to not add or remove anything from the links and pass it directly to onOpen callback so if needed we can add chacks from our own side.