linkfy_text
A lightweight flutter package to linkify texts containing urls, emails and hashtags.
Usage
To use this package, add linkfy_text
as a dependency in your pubspec.yaml file.
Example:
Be default, The above snippet would linkify all urls in the string, you can choose what type of link to linkify by passing the linkTypes
parameter
Parameters | Default | Description |
---|---|---|
textStyle |
null |
Style applied to the text |
linkStyle |
null |
Style applied to the linkified text, defaults to the textStyle |
linkTypes |
LinkType.url |
A list of LinkTypes used to override the links to be linkified in the text either a hashtag, email or url. |
onTap |
null |
Callback function with a Link paramater called when a link is pressed |