fix pub warnings

This commit is contained in:
iamstanlee 2021-06-03 20:31:39 -07:00
parent d9c0420d9b
commit 6923b58fdb
4 changed files with 35 additions and 7 deletions

View File

@ -1,3 +1,3 @@
## [0.0.1] - TODO: Add release date. ## 1.0.0
* TODO: Describe initial release. - Released `v1.0.0`

View File

@ -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 [![pub package](https://img.shields.io/pub/v/http.svg)](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}");
},
);
```

View File

@ -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';

View File

@ -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'