highlightable 1.0.5 highlightable: ^1.0.5 copied to clipboard
A text widget alternative, that highligts defined chars (from pattern / pure-string)
1.0.5 - (22/03/22) #
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