updated readme
This commit is contained in:
parent
d62fe10784
commit
e71d8c3383
|
@ -7,12 +7,11 @@ A lightweight flutter package to linkify texts containing urls, emails and hasht
|
||||||
```dart
|
```dart
|
||||||
// first import the package
|
// first import the package
|
||||||
import 'package:linkfy_text/linkify_text.dart';
|
import 'package:linkfy_text/linkify_text.dart';
|
||||||
|
|
||||||
|
|
||||||
LinkifyText(
|
LinkifyText(
|
||||||
"This text contains a url: https://flutter.dev",
|
"This text contains a url: https://flutter.dev",
|
||||||
linkStyle: TextStyle(color: Colors.blue, fontSize: 16),
|
linkStyle: TextStyle(color: Colors.blue, fontSize: 16),
|
||||||
onTap: (link) {
|
onTap: (link) {
|
||||||
|
// onTap is called when a link is pressed
|
||||||
print("${link.value}");
|
print("${link.value}");
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in New Issue