doc: updated
This commit is contained in:
parent
e087e774e5
commit
7e54777385
|
@ -1,3 +1,6 @@
|
||||||
|
## 1.0.4
|
||||||
|
|
||||||
|
- updated documentation
|
||||||
## 1.0.3
|
## 1.0.3
|
||||||
|
|
||||||
- fix gif display on pub.dev
|
- fix gif display on pub.dev
|
||||||
|
|
25
README.md
25
README.md
|
@ -43,12 +43,25 @@ Container(
|
||||||
)
|
)
|
||||||
```
|
```
|
||||||
|
|
||||||
| Parameters | Default | Description |
|
|
||||||
| ----------- | -------------- | ------------------------------------------------------------------------------------------------------------ |
|
## API Reference
|
||||||
| `textStyle` | `null` | Style applied to the text |
|
|
||||||
| `linkStyle` | `null` | Style applied to the linkified text, defaults to the textStyle |
|
#### LinkfyText
|
||||||
| `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 |
|
| Parameter | Type | Description |
|
||||||
|
| :-------- | :------- | :-------------------------------- |
|
||||||
|
| `textStyle` | `TextStyle` | style applied to the text |
|
||||||
|
| `linkStyle` | `TextStyle` | style applied to the linkified text. **defaults** to `textStyle` |
|
||||||
|
| `linkTypes` | `List<LinkType>` | a list of `LinkType` used to override the links to be linkified in a text either a url, hashtag or email. **defaults** to `[LinkType.url]`|
|
||||||
|
| `onTap` | `Function(Link)` | function called when a link is pressed |
|
||||||
|
|
||||||
|
|
||||||
|
#### Link
|
||||||
|
|
||||||
|
| Parameter | Type | Description |
|
||||||
|
| :-------- | :------- | :-------------------------------- |
|
||||||
|
| `type` | `LinkType` | the link type either url, email or hashtag |
|
||||||
|
| `value` | `String` | value this link holds |
|
||||||
|
|
||||||
# Contributions
|
# Contributions
|
||||||
|
|
||||||
|
|
|
@ -115,7 +115,7 @@ packages:
|
||||||
path: ".."
|
path: ".."
|
||||||
relative: true
|
relative: true
|
||||||
source: path
|
source: path
|
||||||
version: "1.0.3"
|
version: "1.0.4"
|
||||||
matcher:
|
matcher:
|
||||||
dependency: transitive
|
dependency: transitive
|
||||||
description:
|
description:
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
name: linkfy_text
|
name: linkfy_text
|
||||||
description: A lightweight flutter package to linkify texts containing urls, emails and hashtags.
|
description: A lightweight flutter package to linkify texts containing urls, emails and hashtags like twitter does.
|
||||||
version: 1.0.3
|
version: 1.0.4
|
||||||
homepage: https://github.com/Iamstanlee/linkfy_text
|
homepage: https://github.com/Iamstanlee/linkfy_text
|
||||||
|
|
||||||
environment:
|
environment:
|
||||||
|
|
Loading…
Reference in New Issue