text_with_highlight

Creator: coderz1093

Last updated:

0 purchases

TODO
Add to Cart

Description:

text with highlight

A simple and lightweight RichText widget to write a text with highlighted words
Features #
This package is helpful for people who needs to have one or more highlighted words in their text.
Basic Title example:
[Example]
Features:

You can specify the styles of the normal and highlighted parts
You can have multiple highlighted words or phrases in one single Text
Easy to customize

Getting started #
To use this plugin, add spinner as a dependency in your pubspec.yaml file.
Usage #
Example to have IMPORTANT:, HOME and COMPILE in bold and red color and the rest of the text in normal style:
const TextWithHighlight(
text: 'IMPORTANT: take your test at HOME and COMPILE it',
highlightedTexts: ['IMPORTANT:', 'HOME', 'COMPILE'],
textStyle: TextStyle(
fontWeight: FontWeight.normal,
fontSize: 28,
color: Colors.black,
)),
highlightedTextStyle = TextStyle(
fontWeight: FontWeight.bold,
fontSize: 28,
color: Colors.red,
),
copied to clipboard

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.