Skip to content
pubscout

extended_text_field

17.0.0, released 4 months ago by fluttercandies.com

Extended text field to quickly build inline images, @mentions, custom backgrounds and selection tools.

WASM-ready
$ flutter pub add extended_text_field
Source repository

What it does

Extends Flutter's official TextField component to support inline images, special text spans like @somebody with custom backgrounds, and custom selection controls or toolbars.

AI-written summary of version 17.0.0, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need to display inline images inside a text field alongside regular text.
  • You need custom formatting for specific patterns like @mentions or hashtags.
  • You want to build custom text selection toolbars and handles.

Skip it when

  • You are using RTL text direction (not supported for special text).
  • You need to use obscureText for passwords or sensitive input (not supported with special text).

Strengths

  • Supports inline images and mixed text seamlessly.
  • Enables copying the actual text value while rendering special spans.
  • Allows full customization of selection handles and context menus.

Weaknesses

  • Does not support special text when TextDirection.rtl is active.
  • Does not handle special text when obscureText is true.

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
1

Not documented

ImageSpan(AssetImage('xxx.jpg'), imageWidth: size, imageHeight: size, margin: EdgeInsets.only(left: 2.0, bottom: 0.0, right: 2.0));

Alternatives

Packages that do the same job and could replace extended_text_field.

Works with

Packages commonly used together with extended_text_field: ones it builds on, ones built on it, and its own family.