highlightable 1.0.4 highlightable: ^1.0.4 copied to clipboard
A text widget that makes it easy to highlight any letter/word you want
1.0.4 - (20/03/22) #
Updates: #
Resolved #5
- Re-structured the whole widget to improve rendering speed.
- Added a new model object to pass Regular-Expression patterns, as higlighting search options.
The new widget structure:
╭──────╮ Highlight
│ Data │ ╭─────────────────────────────────╮
╰──────╯ │ ╭─────────╮ ╭───────────────╮ │
│ ╭──▶│ │ Pattern │ & │ Words/Letters │ │
│ │ │ ╰─────────╯ ╰───────────────╯ │
│ │ ╰─────────────────────────────────╯
╰───────╯
│
╭── ▼ ──╮ ╭─────────────────────────────────╮
│ Parser ───▶ ... │ Highlighted Data as Text Widget │
╰───────╯ ╰─────────────────────────────────╯
1.0.3 - (18/10/21) #
- Resolved #6 (Added case sensitive support)
Example:
HighlightText(
"Hello, Flutter!",
highlightableWord: "flu, He",
caseSensitive: true // Turn on case-sensitive. (as default it's false "disabled").
),
1.0.2 - (15/08/21) #
- Added
detectWord
property to focus on concrete matcher words
Example:
HighlightText(
"Hello, Flutter!",
highlightableWord: "flu, He",
detectWords: true,
defaultStyle: ...
highlightStyle: ...
),
1.0.1 - (11/08/21) #
- Fixed lower/upper case matching problem