token_text_controller 0.3.1
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
showMarkdownSyntaxfor source-style editing. - Omit hidden syntax from read-only
TokenText, including selectable content. - Expose token
displayTextandcontentRange, 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
22to20in 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
22in mixed and emoji-only values while retaining independent style overrides. - Refocus
socialandmessagingon 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
TextEditingControllercompatible with standard fields. - Add built-in detectors for social, messaging, structured, and markup tokens.
- Add mutable
activeTokensselection with composable built-in token groups. - Add regex, function, trigger, and custom detector APIs.
- Add contextual default styles and per-token
TextStyleoverrides. - 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.