flutter_text_sniffer 5.0.0+6
flutter_text_sniffer: ^5.0.0+6 copied to clipboard
A widget that detects specific patterns within a text and makes them interactive.
5.0.0 #
- Breaking: removed
NoMatchEntryFoundException. Tapping a match no longer throws whenmatchEntriesis empty or shorter than the number of matches —onTapMatchis now always called withmatch: nullanderror: nullin that case.matchEntriesis fully optional and per-match. - Fixed: case-insensitive matching is now preserved (regex flags were lost via the internal regex cache, breaking uppercase emails/links).
- Fixed: tap callbacks no longer reuse a wrong
indexwhen the same text is matched more than once (matched spans are no longer cached by text). - Fixed:
snifferTypeswith anull/empty pattern no longer produce an empty regex alternative that matched every position. - Perf: matches are materialized once instead of rebuilding the list per match.
1.0.0 #
- Created package
1.1.0 #
- Fixed
maxLines
1.2.0 #
- fixed:
matchEntrynow is nullable becausematchEntriescan be empty
2.2.0 #
- fixed:
maxLinesand regular expression for multiple groups
3.3.0 #
-
New: Added support for enhanced matching logic with optional entries.
-
Added
overflowproperty -
Introduced
searchTypesto refine search for specific patterns (e.g., phone, email, link, custom). -
Optimized
onTapMatchcallback handling for better interaction with matched text.
3.4.0 #
- Improved documentation with detailed examples for
onTapMatchand styling matches. - Enhanced README with usage instructions and examples for better developer experience.
4.4.4 #
- Added the ability to create your own sniffer types.
- Updated documentation