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.
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.
- otp_text_field
A Flutter widget to create customizable OTP and PIN input fields.
75Compare - flutter_quill
A rich text WYSIWYG editor component and toolbar for Flutter apps.
85Compare - fform
Build forms with fields, validations, and state management in Flutter.
67Compare - rich_text_controller
An extended text editing controller supporting different inline styles for custom regex patterns.
58Compare
Works with
Packages commonly used together with extended_text_field: ones it builds on, ones built on it, and its own family.
- extended_text_libraryextended_text_field depends on itProvides extended Text and TextField widgets with inline images, custom backgrounds, and advanced selection handling.
- extended_imageSame familyExtended image library with caching, placeholders, zoom/pan, slide-out, and crop editor.
- extended_image_librarySame familyImage handling library with extended features like caching, zoom, editor, and placeholder support.
- extended_textSame familyAn extension of Flutter's official Text widget for special inline content and custom overflow.
- extended_nested_scroll_viewSame familyExtended nested scroll view to fix pinned header and inner scrollables sync issues.
- extended_tabsSame familyAn extension library for Flutter Tabs, TabBar, and TabView with advanced scrolling support.
- extended_sliverSame familyA powerful extension library of Sliver with custom headers and adapters.
- extended_listSame familyExtended list widgets with garbage collection, viewport tracking and trailing layout support.