smart_composer_flutter 1.0.1 copy "smart_composer_flutter: ^1.0.1" to clipboard
smart_composer_flutter: ^1.0.1 copied to clipboard

A reusable, entity-aware rich composer for Flutter — a faithful port of the GeniusLink SmartComposer React component. Mixes plain text with inline reference tokens (users, files, invoices, accounts, t [...]

Changelog #

All notable changes to smart_composer_flutter are documented here. The format is based on Keep a Changelog and this project adheres to Semantic Versioning.

1.0.0 — 2026-06-09 #

Initial release — a faithful Flutter port of the GeniusLink SmartComposer React component. Visual and behavioural parity with the React source.

Added #

  • Model layer (lib/src/model/)
    • ComposerAccents — the disciplined 6-hue accent registry.
    • ReferenceRegistry / ReferenceType with the default GeniusLink entity types.
    • ComposerReference, ComposerAttachment, ComposerSegment.
    • Triggers (@ # / $ : + word triggers file: / path:).
    • AccessModes (full / limited / ask-first / no-external / read-only).
    • ComposerModes — 9 presets (aiPrompt, search, command, note, comment, taskDescription, invoiceNote, financialEntry, message).
    • SampleData + ComposerSearch default suggestion provider.
    • ComposerValidator with entity-state validation.
    • ComposerSeed (seedSegments / guessType).
  • Encoding layer (lib/src/encoding/) — React-compatible
    • SmartComposerParser (parser), SmartComposerSerializer, SmartComposerValue, SmartComposerPlainTextConverter, SmartComposerTokenIndex, ComposerBridge, EncodingUtil.
    • Same encoded text format as React: [<prefix><tagType>:<displayText>](valueText).
  • Drag & drop (lib/src/dnd/) — ComposerDnd, DropConfig, DropItem, SmartComposerDropValidator, extension/MIME mapping, URL & path handling.
  • Controller (lib/src/controller/) — ComposerController (ChangeNotifier), ComposerCallbacks, DropCallbacks, ComposerEditorValue.
  • Widgets (lib/src/widgets/) — SmartComposer, SuggestionMenu, ComposerToolbar, AttachmentBar, ComposerBanner, ComposerTokenChip, ComposerIcons.
  • Preview (lib/src/preview/) — SmartComposerPreview, PreviewResolverModel, TokenResolver, ResolveResult, makeDemoResolver.
  • ThemeComposerTheme (GeniusLink dark + light), ComposerThemeScope.
  • Testing utilityrunComposerTests() (mirrors React SC.runTests()).
  • Example app (example/) — six-tab showcase matching the React example: Playground, Examples, Encoding, Drag & Drop, Tests, Docs / API.
  • Tests — encoding, controller and widget tests.
  • AI skillskills/smart_composer_flutter.md.
0
likes
125
points
5
downloads
screenshot

Documentation

Documentation
API reference

Publisher

unverified uploader

Weekly Downloads

A reusable, entity-aware rich composer for Flutter — a faithful port of the GeniusLink SmartComposer React component. Mixes plain text with inline reference tokens (users, files, invoices, accounts, tasks, tools, commands and any custom type), with a human-readable encoded-text source of truth, a React-compatible parser, drag & drop, a read-only preview with remote resolution, modes, triggers, access postures, validation and theming.

Homepage
Repository (GitHub)
View/report issues

Topics

#flutter #composer #rich-text #references #ai-input-field

License

MIT (license)

Dependencies

flutter

More

Packages that depend on smart_composer_flutter