parse_text 0.0.1 copy "parse_text: ^0.0.1" to clipboard
parse_text: ^0.0.1 copied to clipboard

outdated

A Package to Detect different pattern in text and display it in Text Widget.

parse_text #

A Flutter package that simply allows you to detect multiple types i.e. email, mobile, urls, etc. It is highly Customizable in terms of size, color, style, etc for each detected type of text and Simple to use.

Import #

dependencies:
  parse_text: 0.0.1

Text Format for Detection #

URL : "This https://www.google.com/ will be detected as URL and navigate you to browser"

Email : "This example@email.com will be detected as email and navigate you to email app with sample subject and body"

Mobile : "This +919898989898 and 9898989898 will be detected as Phone Number and navigate you to Dialer"

Bold : "This *Sample Text* will be Bold"

Italic : "This _Sample Text_ will be Italic"

Cross : "This ~Sample Text~ will be Cross"

Simple use #

You can use ParseText as Text Widget

ParseText(
  size: 16,
  text: "Add your Sample Text here"
)

Beautify Detected Texts #

You can use multiple text beautification options with detected text formats.

ParseText(
  size: 16,
  text: "Add your Sample Text here"
  emailColor: Colors.red,
  emailSize: 18,
  urlStyle: FontStyle.italic,
  italicFW: FontWeight.w700,
)

Parameters for undetected text #

parameter description default
size The Size of Text which is supposed to parse and Displayed as Text Widget required
text The Text which is supposed to parse required
color The Color of UnDetected Text Color(0xFF424242)
wt The FontWeight of UnDetected Text FontWeight.normal
align The Alignment of UnDetected Text TextAlign.start
maxLine maxLines of UnDetected Text infinite
style FontStyle of UnDetected Text FontStyle.normal

Parameters for detected email text #

parameter description default
emailColor The Color of text detected as Email Color.blue
emailFW The FontWeight of text detected as Email FontWeight.w600
emailSize The Size of text detected as Email size (same as UnDetected Text)
emailStyle The FontStyle of text detected as Email FontStyle.normal

Parameters for detected mobile text #

parameter description default
mobColor The Color of text detected as mobile Color.blue
mobFW The FontWeight of text detected as mobile FontWeight.w600
mobSize The Size of text detected as mobile size (same as UnDetected Text)
mobStyle The FontStyle of text detected as mobile FontStyle.normal

Parameters for detected url text #

parameter description default
urlColor The Color of text detected as URL Color.blue
urlFW The FontWeight of text detected as URL FontWeight.w600
urlSize The Size of text detected as URL size (same as UnDetected Text)
urlStyle The FontStyle of text detected as URL FontStyle.normal

Parameters for detected bold text #

parameter description default
boldColor The Color of text detected as Bold Color(0xFF424242)
boldFW The FontWeight of text detected as Bold FontWeight.bold
boldSize The Size of text detected as Bold size (same as UnDetected Text)
boldStyle The FontStyle of text detected as Bold FontStyle.normal

Parameters for detected italic text #

parameter description default
italicColor The Color of text detected as Italic Color(0xFF424242)
italicFW The FontWeight of text detected as Itali FontWeight.normal
italicSize The Size of text detected as Italic size (same as UnDetected Text)

Parameters for detected email text #

parameter description default
crossColor The Color of text detected as Cross Color(0xFF424242)
crossFW The FontWeight of text detected as Cross FontWeight.w600
crossSize The Size of text detected as Cross size (same as UnDetected Text)
crossStyle The FontStyle of text detected as Cross FontStyle.normal
8
likes
0
pub points
0%
popularity

Publisher

unverified uploader

A Package to Detect different pattern in text and display it in Text Widget.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter, http, url_launcher

More

Packages that depend on parse_text