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 | | `textStyle` | `null` | Style applied to the text |
| `linkStyle` | `null` | Style applied to the linkified text, defaults to the textStyle | | `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 | | `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 # Contributions
Feel free to contribute to this project. 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 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. 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 @override
Widget build(BuildContext context) { Widget build(BuildContext context) {
return Text.rich( return Text.rich(
linkify( _linkify(
text: text, text: text,
linkStyle: linkStyle, linkStyle: linkStyle,
onTap: onTap, onTap: onTap,
@ -151,7 +151,7 @@ class LinkifyText extends StatelessWidget {
} }
} }
TextSpan linkify({ TextSpan _linkify({
String text = '', String text = '',
TextStyle? linkStyle, TextStyle? linkStyle,
List<LinkType>? linkTypes, List<LinkType>? linkTypes,