extended_text_library
12.0.1, released 2 years ago by fluttercandies.com
Provides extended Text and TextField widgets with inline images, custom backgrounds, and advanced selection handling.
What it does
It adds special inline span support to render images, mentions, and custom styling inside regular text. The accompanying TextField variant offers the same features for editable content, including custom toolbars and selection handles.
AI-written summary of version 12.0.1, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need inline images or custom styled segments inside a Text widget
- You require a TextField that can display rich content like mentions or emojis with custom selection UI
Skip it when
- You only need plain text without special spans
- You prefer a fully custom implementation rather than a library
Strengths
- Rich inline content support
- Customizable selection toolbar and handles
- Works across all Flutter platforms
Weaknesses
- Adds extra complexity to text handling
- May have performance impact with many special spans
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 0
import 'package:extended_text_library/extended_text_library.dart';
ExtendedText(
"Hello @user 🌟",
specialTextSpanBuilder: MySpecialTextSpanBuilder(),
);
ExtendedTextField(
controller: TextEditingController(),
specialTextSpanBuilder: MySpecialTextSpanBuilder(),
);Alternatives
Packages that do the same job and could replace extended_text_library.
- re_editor
A lightweight text and code editor widget for Flutter with syntax highlighting and folding.
80Compare - device_frame
Provides mock device frames to preview Flutter UI on various device screens.
73Compare - input_history_text_field
A TextField that automatically saves typed entries and suggests them as history.
50Compare - marquee_widget
A Flutter widget that scrolls text and other widgets with RTL support.
47Compare
Works with
Packages commonly used together with extended_text_library: ones it builds on, ones built on it, and its own family.
- 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_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.
- extended_textBuilt on extended_text_libraryAn extension of Flutter's official Text widget for special inline content and custom overflow.
- extended_text_fieldBuilt on extended_text_libraryExtended text field to quickly build inline images, @mentions, custom backgrounds and selection tools.