regex_pattern_text_field 1.1.0
regex_pattern_text_field: ^1.1.0 copied to clipboard
A custom text editing controller that applies styles to matched patterns in a text field.
1.1.0 - 2026-04-05 #
Added #
- Typed public model support via generics:
RegexPatternMatched<T>RegexPatternTextStyle<T>
- New root test suite for:
- matching and non-matching callback flows
- styled text segment rendering
- widget aggregate callbacks (
onChanged,onSubmitted)
- Planning artifacts for upgrade and release governance under:
doc/plan/upgrade-flutter-tooling-and-quality-2026-04-05/artifacts/
Changed #
- Upgraded package constraints to modern stable-compatible tooling:
- Dart
>=3.8.0 <4.0.0 - Flutter
>=3.35.0
- Dart
- Upgraded lint package to
flutter_lints: ^6.0.0in root and example. - Strengthened analyzer options with strict typing checks.
- Improved controller robustness for cursor extraction and empty-pattern handling.
- Example app updated to typed callback/model usage and analyzer-safe logging.
Removed #
RegexPatternTextField.scribbleEnabledRegexPatternTextField.materialStatesControllerRegexPatternTextField.toolbarOptions
Notes #
- This is a migration-safe release focused on minimal API breakage.
- Performance track was intentionally skipped in this cycle because no measurable bottleneck evidence was available.
1.0.0 First release #
* First release of the project.
1.0.1 Added new regex patterns #
* github = r'((git|ssh|http(s)?)|(git@[\w\.]+))(:(\/\/)?)([\w\.@\:/\-~]+)(\.git)(\/)?'
* twitter = r'(?:(?:twitter?|tw): @)+[\w/\-_?=%.]+'
* facebook = r'(?:(?:facebook?|fb?|Facebook): @)+[\w/\-_?=%.]+'
* instagram = r'(?:(?:instagram?|insta?|Instagram): @)+[\w/\-_?=%.]+'
* dateTime = r'\d{1,2} [a-zA-Z]{3} \d{4}'
* phone = r'\(?\+[0-9]{1,3}\)? ?-?[0-9]{1,3} ?-?[0-9]{3,5} ?-?[0-9]{4}( ?-?[0-9]{3})? ?(\w{1,10}\s?\d{1,6})?'
* email = r'([a-z0-9]+([-+._][a-z0-9]+){0,2}@.*?(\.(a(?:[cdefgilmnoqrstuwxz]|ero|(?:rp|si)a)|b(?:[abdefghijmnorstvwyz]iz)|c(?:[acdfghiklmnoruvxyz]|at|o(?:m|op))|d[ejkmoz]|e(?:[ceghrstu]|du)|f[ijkmor]|g(?:[abdefghilmnpqrstuwy]|ov)|h[kmnrtu]|i(?:[delmnoqrst]|n(?:fo|t))|j(?:[emop]|obs)|k[eghimnprwyz]|l[abcikrstuvy]|m(?:[acdeghklmnopqrstuvwxyz]|il|obi|useum)|n(?:[acefgilopruz]|ame|et)|o(?:m|rg)|p(?:[aefghklmnrstwy]|ro)|qa|r[eosuw]|s[abcdeghijklmnortuvyz]|t(?:[cdfghjklmnoprtvwz]|(?:rav)?el)|u[agkmsyz]|v[aceginu]|w[fs]|y[etu]|z[amw])\b){1,2})'
1.0.2 Added regexPatternMatchedList on RegexPatternTextEditingController #
* Added regexPatternMatchedList on RegexPatternTextEditingController
1.0.3 Change onChanged on RegexPatternTextField #
* final Function(List<RegexPatternMatched> regexPatternMatchedList, String text)? onChanged;
1.0.4 Change onSubmitted on RegexPatternTextField #
* final Function(List<RegexPatternMatched> regexPatternMatchedList, String text)? onSubmitted;
1.0.5 Updated README.md #
* Updated README.md
1.0.6 Add changes to example #
* Add changes to example
1.0.7 Change Email Regex Pattern #
* Change email regex pattern (https://www.ex-parrot.com/pdw/Mail-RFC822-Address.html)
1.0.8 Improved Documentation and Features #
* Updated README.md with:
* Detailed usage examples and advanced patterns.
* Clarifications for callbacks (`onMatch`, `onNonMatch`, `onChanged`, `onSubmitted`).
* Customization options for combining default and custom styles.
1.0.9 Improved Documentation and Features #
Added #
- Updated
README.mdwith:- Detailed usage examples and advanced patterns.
- Clarifications for callbacks (
onMatch,onNonMatch,onChanged,onSubmitted). - Customization options for combining default and custom styles.
- Enhanced example application with dynamic match listing.
Changed #
- Refactored example code for improved readability and usability:
- Introduced dynamic feedback for pattern matches.
- Improved text field handling for large inputs.
- Optimized
RegexPatternTextFieldfor better performance and accuracy in regex matching.
Fixed #
- Minor bugs in regex pattern processing.
1.0.10 Improved Documentation and Features #
Changed #
- Refactored example code for improved readability and usability:
- Introduced dynamic feedback for pattern matches.
- Improved text field handling for large inputs.
- Optimized
RegexPatternTextFieldfor better performance and accuracy in regex matching.