docs: add pr and issue hrefs

This commit is contained in:
iamstanlee 2021-06-04 05:23:44 -07:00
parent af05a7887d
commit 1f9bd54c4f
2 changed files with 5 additions and 5 deletions

View File

@ -49,11 +49,11 @@ Container(
| `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` to be linkified in the text either a hashtag,email or url |
| `onTap` | `null` | function with a `Link` called when a link is tapped |
| `onTap` | `null` | function with a `Link` paramater called when a link is pressed |
# Contributions
Feel free to contribute to this project.
If you find a bug or want a feature, but don't know how to fix/implement it, please fill an issue.
If you fixed a bug or implemented a feature, please send a pull request.
If you find a bug or want a feature, but don't know how to fix/implement it, please fill an [issue][issue].
If you fixed a bug or implemented a feature, please send a [pull request][pr].

View File

@ -129,7 +129,7 @@ class LinkifyText extends StatelessWidget {
@override
Widget build(BuildContext context) {
return Text.rich(
linkify(
_linkify(
text: text,
linkStyle: linkStyle,
onTap: onTap,
@ -151,7 +151,7 @@ class LinkifyText extends StatelessWidget {
}
}
TextSpan linkify({
TextSpan _linkify({
String text = '',
TextStyle? linkStyle,
List<LinkType>? linkTypes,