text_highlight_rounded 0.0.4 copy "text_highlight_rounded: ^0.0.4" to clipboard
text_highlight_rounded: ^0.0.4 copied to clipboard

A Flutter package which provide custom Text Widget looks like Instagram Story highlighted rounded text

Text Highlight Rounded #

Description #

A custom widget which provides rounded highlighted text, made with painter

Example #

example-1
HighlightTextRounded(
    text: "one line only",
    style: TextStyle(
    fontSize: 20,
    color: Colors.black,
),
example-2
HighlightTextRounded(
    text: "and for this\nhighlightText is more\nthan one line\nwithall rounded corners",
    textAlign: TextAlign.center,
    bold: 7,
    isAllCornerRound: true,
    radius: 10,
    markColor: Colors.red[100]!,
    style: const TextStyle(
        fontSize: 25,
        fontWeight: FontWeight.bold,
        color: Colors.purple,
    ),
),
example-3
HighlightTextRounded(
    text: "and for this\nhighlightText is more\nthan one line\nwith basic rounded corner",
    textAlign: TextAlign.right,
    bold: 7,
    radius: 10,
    isAllCornerRound: false,
    markColor: Colors.blue[100]!,
    style: TextStyle(
        fontSize: 25,
        fontWeight: FontWeight.bold,
        color: Colors.blueGrey[800],
    ),
),

Parameter #

  • String text
  • TextStyle style;
  • double? maxWidth;
  • double radius;
  • Color markColor;
  • TextAlign textAlign;
  • double bold;
  • bool isAllCornerRound;
23
likes
150
points
1
downloads

Publisher

unverified uploader

Weekly Downloads

A Flutter package which provide custom Text Widget looks like Instagram Story highlighted rounded text

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

flutter

More

Packages that depend on text_highlight_rounded