Last updated:
0 purchases
highlightable
Installing #
See the official installing guideline from highlightable/install
Usage #
Basic usage: #
HighlightText(
'Only numbers: [1, 25, 50, ...] will be highlighted',
// would highlight only numbers.
highlight: const Highlight(pattern: r'\d'),
)
copied to clipboard
Custom usage: #
HighlightText(
"Hello, Flutter!",
// Would highlight only the "Flutter" full word 'cause [detectWords] is enabled.
highlight: const Highlight(
words: ["Flutter"],
),
caseSensitive: true, // Turn on case-sensitive.
detectWords: true, // Turn on full-word-detection.
style: const TextStyle(
fontSize: 25,
color: Colors.black,
fontWeight: FontWeight.bold,
),
highlightStyle: const TextStyle(
fontSize: 25,
letterSpacing: 2.5,
color: Colors.white,
backgroundColor: Colors.blue,
fontWeight: FontWeight.bold,
),
)
copied to clipboard
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.