super_text_layout
0.1.22, released 2 months ago by flutterbountyhunters.com
Configurable and extensible text display for custom decorations in Flutter.
What it does
Provides SuperText and SuperTextWithSelection widgets to paint custom text selections, carets, highlights, and other layouts above or beneath text. It allows precise positioning based on lines and characters in the text layout.
AI-written summary of version 0.1.22, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need to paint custom text selections, highlights, or carets.
- You require multi-user text selections displayed in a single text block.
- You want custom UI elements positioned relative to text characters and lines.
Skip it when
- You only need standard Flutter Text or SelectableText widgets without custom decorations.
- You are looking for a complete rich-text editor (use super_editor instead).
Strengths
- Supports single and multi-user text selections out of the box.
- Enables custom painting above and beneath text using text layout information.
- Extensible and composable design.
Weaknesses
- Requires manual implementation for advanced custom UI layers.
- Adds extra complexity compared to standard Flutter text widgets.
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 4
Widget build(context) {
return SuperTextWithSelection.single(
richText: myText,
userSelection: UserSelection(
highlightStyle: myHighlightStyle,
caretStyle: myCaretStyle,
selection: myTextSelection,
),
);
}Alternatives
Packages that do the same job and could replace super_text_layout.
- re_editor
A lightweight text and code editor widget for Flutter with syntax highlighting and folding.
80Compare - fleather
A clean, minimalistic and collaboration-ready rich text editor for Flutter.
80Compare - textf
Drop-in Text and TextEditingController replacements for inline Markdown-like text formatting
81Compare - simple_rich_text
Display formatted rich text using simple characters like asterisks and slashes.
50Compare
Works with
Packages commonly used together with super_text_layout: ones it builds on, ones built on it, and its own family.
- loggingsuper_text_layout depends on itProvides configurable logging with levels and stream listeners for Dart apps.
- attributed_textsuper_text_layout depends on itText with metadata spans for easy text editing and styling.
- super_keyboardSame familyA plugin that reports software keyboard visibility and size on Android and iOS.
- super_bannersSame familyDisplay angled banners in any corner of your content.