flutter_text_styled 0.5.1
flutter_text_styled: ^0.5.1 copied to clipboard

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

flutter_text_styled #

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

Features #

  • [X] [b][/b] bold text
  • [X] [i][/i] italics text
  • [X] [u][/u] underline text
  • [X] [color=NAME_OF_COLOR_OR_VALUE] [/color] Colored text
  • [X] Hyperlinks
  • [X] Styles
  • [ ] 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.

getRichText returns RichText widget.

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.

6
likes
120
pub points
49%
popularity

Publisher

Unknown

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

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

flutter, url_launcher

More

Packages that depend on flutter_text_styled