linkwell 0.1.3 linkwell: ^0.1.3 copied to clipboard
LinkWell is Text Plugin that detects URLs and Emails in a String and when tapped opens in users browsers,
LinkWell #
LinkWell is Text Plugin that detects URLs and Emails in a String and when tapped opens in user browsers,
linkwell
#
ScreenShots #
Basic Usage | Named Links |
---|---|
Usage #
Basic:
import 'package:linkwell/linkwell.dart';
LinkWell(
"Hi here's my email: samuelezedi@gmail.com and website: https://samuelezedi.com"
);
Add Styling #
To add style to links
LinkWell(
"Hi here's my email: samuelezedi@gmail.com and website: https://samuelezedi.com",
linkStyle: TextStyle(color: Colors.blue,fontSize: 17)
);
To add style to non links
LinkWell(
"Hi here's my email: samuelezedi@gmail.com and website: https://samuelezedi.com",
style: TextStyle(color: Colors.blue,fontSize: 17)
);
Naming Links #
If you would like to name the links
LinkWell(
"By registering you agree to our samuelezedi.com/terms and samuelezedi.com/privacy",
listOfNames: {
'samuelezedi.com/terms' : 'Terms',
'samuelezedi.com/privacy' : 'Privacy Policy'
},
);
Why I made this plugin #
I was building a chat application and I need something to detect when users posted links and emails so I went online and found a couple plugin but they only one fit the need, I imported it and discovered that it could not detect emails correctly and it long urls fully and finally I could not name URLs or emails, So I built LinkWell. I hope this is what you are looking for and it solves your link problems.