extra_field 0.1.0
extra_field: ^0.1.0 copied to clipboard
A rich composer input field for Flutter — inline trigger detection (#, @, $), action buttons, sticker panels, attachment previews, async validators, and a send button. Zero external dependencies.
0.1.0 #
Initial release.
Features #
- ExtraFieldWidget — Rich composer input field (WhatsApp / Telegram / Twitter style).
- Inline Triggers — Type
#,@,$, or any character to activate autocomplete suggestions with styled inline text. Supports static lists and async search with debounce. - Action Buttons —
ExtraFieldAction.media(),.stickers(),.location(),.custom()with full callback-based integration (zero platform dependencies). - Sticker Picker — Tabbed grid panel with multiple packs, selection limits, and custom sticker builders.
- Attachment Previews — Horizontal scrollable bar for media thumbnails, location chips, and sticker previews.
- Async Validators — Parallel async validation with
validateOnChangeand debounce support. - ExtraFieldController — Programmatic control for text, attachments, location, stickers, panels, and validation state.
- ExtraFieldValue — Immutable composed value with
toMap()/fromMap()serialization. - ExtraFieldThemeData — Full theming with per-module theme overrides and
InheritedWidgetpropagation. - ExtraFieldStrings — All user-facing strings configurable for localization (RTL supported).
- Custom Builders —
suggestionBuilder,stickerBuilder,buttonBuilder,sendButtonBuilder,panelBuilder,mediaItemBuilder,locationBuilder. - Models —
MediaItem,LocationData,Sticker,StickerPack,TriggerMatch,TriggerConfig— all withtoMap()/fromMap().
