docs: add pr and issue hrefs
This commit is contained in:
parent
af05a7887d
commit
1f9bd54c4f
|
@ -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].
|
||||||
|
|
|
@ -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,
|
||||||
|
|
Loading…
Reference in New Issue