Skip to content
pubscout

super_text_layout

0.1.22, released 2 months ago by flutterbountyhunters.com

Configurable and extensible text display for custom decorations in Flutter.

WASM-ready
$ flutter pub add super_text_layout
Source repository

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.

  • fleather

    A clean, minimalistic and collaboration-ready rich text editor for Flutter.

  • textf

    Drop-in Text and TextEditingController replacements for inline Markdown-like text formatting

  • simple_rich_text

    Display formatted rich text using simple characters like asterisks and slashes.

Works with

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