fix pub warnings
This commit is contained in:
parent
d9c0420d9b
commit
6923b58fdb
|
@ -1,3 +1,3 @@
|
||||||
## [0.0.1] - TODO: Add release date.
|
## 1.0.0
|
||||||
|
|
||||||
* TODO: Describe initial release.
|
- Released `v1.0.0`
|
||||||
|
|
33
README.md
33
README.md
|
@ -1,3 +1,32 @@
|
||||||
# linkify_text
|
A lightweight flutter package to linkify texts containing urls, emails and hashtags.
|
||||||
|
|
||||||
### A lightweight flutter package to linkify texts with urls, emails and hashtags
|
[](https://pub.dev/packages/linkfy_text)
|
||||||
|
|
||||||
|
## Using
|
||||||
|
|
||||||
|
```dart
|
||||||
|
// first import the package
|
||||||
|
import 'package:linkfy_text/linkify_text.dart';
|
||||||
|
|
||||||
|
|
||||||
|
LinkifyText(
|
||||||
|
"This text contains a url: https://flutter.dev",
|
||||||
|
linkStyle: TextStyle(color: Colors.blue, fontSize: 16),
|
||||||
|
onTap: (link) {
|
||||||
|
print("${link.value}");
|
||||||
|
},
|
||||||
|
);
|
||||||
|
```
|
||||||
|
|
||||||
|
Be default, The above snippet would linkify all urls in the string, you can choose whatxw type of link to linkify by passing the `linkTypes` parameter
|
||||||
|
|
||||||
|
```dart
|
||||||
|
LinkifyText(
|
||||||
|
"This text contains an #hashtag",
|
||||||
|
linkStyle: TextStyle(color: Colors.blue, fontSize: 16),
|
||||||
|
linkTypes: [LinkType.hashtag]
|
||||||
|
onTap: (link) {
|
||||||
|
print("${link.value}");
|
||||||
|
},
|
||||||
|
);
|
||||||
|
```
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
/// A lightweight flutter package to linkify texts containing urls, emails and hashtags.
|
/// A lightweight flutter package to linkify texts containing urls, emails and hashtags.
|
||||||
library linkify_text;
|
library linkfy_text;
|
||||||
|
|
||||||
export 'src/linkify.dart';
|
export 'src/linkify.dart';
|
||||||
export 'src/enum.dart';
|
export 'src/enum.dart';
|
||||||
|
|
|
@ -1,8 +1,7 @@
|
||||||
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.
|
||||||
version: 1.0.0
|
version: 1.0.0
|
||||||
author:
|
homepage: https://github.com/Iamstanlee/linkfy_text
|
||||||
homepage:
|
|
||||||
|
|
||||||
environment:
|
environment:
|
||||||
sdk: '>=2.12.0 <3.0.0'
|
sdk: '>=2.12.0 <3.0.0'
|
||||||
|
|
Loading…
Reference in New Issue