highlightable 1.0.2 copy "highlightable: ^1.0.2" to clipboard
highlightable: ^1.0.2 copied to clipboard

outdated

A text widget that makes it easy to highlight any letter/word you want


Package Logo

License: MIT License: MIT CONTRIBUTING

Overview & Usage #

First, actualText property and highlightableWord property are required. You can customize actualText by providing defaultStyle. Also you can customize highlighted text style by highlightStyle property. highlightableWord poperty could be string array or just string with spaces.

You can enable word detection to focus on concrete matcher word. See "Custom usage" part for example.

Very basic usage #

HighlightText(
  'Hello World',
  highlightableWord: 'hello',
),
s1

Custom usage #

HighlightText(
  "Hello, Flutter!",
  highlightableWord: "flu, He",
  detectWords: true,
  defaultStyle: TextStyle(
    fontSize: 25,
    color: Colors.black,
    fontWeight: FontWeight.bold,
  ),
  highlightStyle: TextStyle(
    fontSize: 25,
    letterSpacing: 2.5,
    color: Colors.white,
    backgroundColor: Colors.blue,
    fontWeight: FontWeight.bold,
  ),
),
stwo
14
likes
0
pub points
71%
popularity

Publisher

verified publishertheiskaa.com

A text widget that makes it easy to highlight any letter/word you want

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter

More

Packages that depend on highlightable