rich_text_controller 1.4.0 icon indicating copy to clipboard operation
rich_text_controller: ^1.4.0 copied to clipboard

An extended text editing controller that supports different inline styles for custom regex patterns

rich_text_controller #

An extended text editing controller that supports different inline styles for custom regex.

Getting Started #

1. Depend on it #

Add this to your package's pubspec.yaml file:

dependencies:
  rich_text_controller: [latest version]

2. Install it #

$ flutter pub get

3. Import it #

import'rich_text_controller/rich_text_controller.dart';

Example #

See Example page for example code.

Usage #

PropertyDescriptionDefault
Map<RegExp, TextStyle> patternMatchMapMap to match a certain RegExp pattern with a custom style--
Map<String, TextStyle> stringMatchMapMap to match a certain word with a custom style--
@required Function(List onMatchVoid Callback for matched content--
bool deleteOnBackdelete the last matched content on backspace or notfalse

Assertions #

  • Must not add both patternMatchMap and stringMatchMap, only one of them.

Contributing #

Contributing is more than welcomed on any of my packages/plugins. I will try to keep adding suggested features as i go.

Current list of contributors:

  • EriKWDev
  • avatarnguyen

Versioning #

  • V1.0.0 - First Release.
  • V1.0.1 - Added Example.
  • V1.1.0 - Added onMatch Callback.
  • V1.2.0 - Resolved Issues + added String-Matching.
  • V1.3.0 - Resolved Issues + added Null safety.
  • V1.4.0 - Resolved Issues + added deleteOnBack functionality.

Authors #

Michael Aziz - Github

License #

This project is licensed under the MIT License - see the LICENSE.md file for details

43
likes
110
pub points
91%
popularity

Publisher

verified publisher iconmicazi.dev

An extended text editing controller that supports different inline styles for custom regex patterns

Homepage

Documentation

API reference

License

Icon for licenses.MIT (LICENSE)

Dependencies

flutter

More

Packages that depend on rich_text_controller