- Get default text scale factor from media query
- Add highlight builder
- Prevent performance degradation with empty search queries
Thanks to Crizant, Thientran2910 and oriventi
- Added textScaleFactor;
- Rewritten binding logic;
Thanks to Crizant
Added splitOnLongWord
, it will split the words when it is too long, keeping the words in the same line as the text.
Fixed number parse issue Thanks to Hakob
Replace <highlight>
with |
to avoid issues with words which overlap with the word "highlight"
Highlight words from longest to shortest, because otherwise the longer word might not get highlighted if the shorter word is a subword of it
Thanks to Enloc
Highlight words without highlighting subwords. Thanks to Enloc
style
and onTap
for HighlightedWord
and TextHighlight
are now optional.
Improved matchCase
, now a substring can be highlighted.
Fixed RangeError when there is a number at the end of text
and the word before is highlighted.
Added binding
parameter to TextHighlight
, now you can define what occurrence you want to highlight with HighlightBinding
enum.
matchCase
fixed
Fixed first word not matching
Renamed enabledCaseSensitive
to matchCase
to be clearer about what it does
matchCase: false
will keep the original word
Fixed error when you add a word in the dictionary that is not in the sentence.
Added BoxDecoration
(called decoration
) and EdgeInsetsGeometry
(called padding
) to HighlightedWord
object, now you can customize your words better.
Package reworked
Added null safety support
RangeError for a HighlightedWord
ending with a blank space fixed
Working with numbers
HighlightedWord
working with more than one word
Health suggestions.
Some corrections in the example.
Now you can choose to differentiate words with upper and lower case.
Fixed the problem of the last word is not always highlighted.
RangeError Solved. Thanks to Artem
If the highlighted word has special characters then it is only highlighted if it has only one character.
Now the highlights work in words followed by special characters, numbers or complementary words.
The meaning attribute was removed from the HighlightedWord class; the onTap is working normally.
Minor maintenance fixes
Example correction
With this package you can highlight words and create specific actions for each highlighted word, you can customize the style of each word separately or create a unique style for all of them, you can also customize the style of the rest of the text.