Skip to content

Flutter package to get styled Text with basic HTML text tags.

License

Notifications You must be signed in to change notification settings

KanarekApp/flutter_text_styled

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

flutter_text_styled

A Flutter helper class to add tag-styled text into your widgets.

Features

  • [b][/b] bold text
  • [i][/i] italics text
  • [u][/u] underline text
  • [color=NAME_OF_COLOR_OR_VALUE] [/color] Colored text
  • Hyperlinks
  • Text size

In current version [b][/b], [i][/i], [u][/u], [color=NAME_OF_COLOR_OR_VALUE] [/color] [a=LINK][/a] tags are allowed for bold, italic, underline colored text style and hyperlinks.

getStyledTextWidgets returns List<Widget> widgets.

Color could be defined as name from colors.dart from material package or using int to parse by this class. See example.

List of supported colors:

  • "amber":
  • "amberAccent"
  • "black"
  • "black12"
  • "black26"
  • "black38"
  • "black45"
  • "black54"
  • "black87"
  • "blue"
  • "blueAccent"
  • "blueGrey"
  • "brown"
  • "cyan"
  • "cyanAccent"
  • "deepOrangeAccent"
  • "deepPurple"
  • "deepPurpleAccent"
  • "green"
  • "greenAccent";
  • "grey"
  • "indigo"
  • "indigoAccent"
  • "lightBlue"
  • "lightBlueAccent"
  • "lightGreen"
  • "lightGreenAccent"
  • "lime"
  • "limeAccent"
  • "orange"
  • "orangeAccent"
  • "pink"
  • "pinkAccent"
  • "purple"
  • "purpleAccent"
  • "pink"
  • "red"
  • "redAccent"
  • "teal"
  • "tealAccent"
  • "transparent"
  • "white"
  • "yellow"
  • "yellowAccent"

Questions or Feedback?

Feel free to open an issue.

About

Flutter package to get styled Text with basic HTML text tags.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Dart 95.8%
  • Swift 2.9%
  • Other 1.3%