token_text_controller 0.3.1 copy "token_text_controller: ^0.3.1" to clipboard
token_text_controller: ^0.3.1 copied to clipboard

A customizable Flutter text editing controller for detecting, styling, querying, and serializing semantic text tokens.

0.3.1 #

  • Refine package documentation for token styling, metadata, and detector groups.

0.3.0 #

  • Hide recognized Markdown delimiters by default without changing controller text, source offsets, selections, token callbacks, or serialized documents.
  • Preserve composing underlines and source offsets without exposing syntax; add mutable showMarkdownSyntax for source-style editing.
  • Omit hidden syntax from read-only TokenText, including selectable content.
  • Expose token displayText and contentRange, retain Markdown link targets in token metadata, and add read-only source-length control to the span builder.
  • Support alternate bold/italic delimiters, reject escaped or incomplete formatting, and protect inline code from nested link detection.
  • Preserve formatting-like characters inside detected URLs, email addresses, handles, hashtags, and template variables.
  • Reduce the default emoji size from 22 to 20 in mixed and emoji-only text.
  • Use a stable semantic light/dark palette independent of brand colors while preserving per-token style overrides and unstyled mode.
  • Expand examples and tests for rendering, caret geometry, IMEs, and contrast.

0.2.1 #

  • Refresh the public installation documentation for pub.flutter-io.cn.

0.2.0 #

  • Keep the built-in emoji font size stable at 22 in mixed and emoji-only values while retaining independent style overrides.
  • Refocus social and messaging on social content and human chat.
  • Add dedicated chat, assistant, suggestion, temporal, identifier, and developer-content token groups.
  • Add matching detector presets for common field types.

0.1.1 #

  • Improve Dart API documentation coverage for pub.flutter-io.cn.
  • Enforce documentation on public API members during static analysis.

0.1.0 #

  • Add a token-aware TextEditingController compatible with standard fields.
  • Add built-in detectors for social, messaging, structured, and markup tokens.
  • Add mutable activeTokens selection with composable built-in token groups.
  • Add regex, function, trigger, and custom detector APIs.
  • Add contextual default styles and per-token TextStyle overrides.
  • Add token, newly-detected-token, and active-query notifications.
  • Add semantic token insertion with metadata.
  • Add JSON-compatible semantic document serialization and restoration.
  • Add a reusable tokenized text renderer.
1
likes
160
points
254
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

A customizable Flutter text editing controller for detecting, styling, querying, and serializing semantic text tokens.

Homepage

Topics

#text-field #text-editing #mentions #hashtags #syntax-highlighting

License

MIT (license)

Dependencies

characters, flutter

More

Packages that depend on token_text_controller