Skip to content
pubscout

auto_hyphenating_text

0.3.2, released 5 months ago by an unverified publisher

A drop-in replacement for the default text widget that automatically adds hyphenation.

WASM-ready
$ flutter pub add auto_hyphenating_text
Source repository

What it does

AutoHyphenatingText acts as a drop-in replacement for the standard Flutter Text widget, automatically handling word hyphenation. It requires an initialization step to load the hyphenation algorithm before usage.

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

Use it when

  • You need automatic hyphenation for text wrapping in Flutter layouts.
  • You want a drop-in replacement for the standard Text widget.

Skip it when

  • You cannot perform the asynchronous initialization required by the hyphenation algorithm.
  • You do not need hyphenation support.

Strengths

  • Acts as a drop-in replacement for the default Text widget.
  • Supports customizable hyphenation characters and selectable text.

Weaknesses

  • Requires an explicit asynchronous initialization step (`initHyphenation()`) before use.

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
1

Needs to be initialized using await initHyphenation(); before usage, unless manually initialized.

await initHyphenation();

AutoHyphenatingText("abc");

Alternatives

Packages that do the same job and could replace auto_hyphenating_text.

  • text_scroll

    A Flutter widget that auto‑scrolls overflowing text like a marquee.

  • textf

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

  • re_editor

    A lightweight text and code editor widget for Flutter with syntax highlighting and folding.

  • drop_shadow

    Add drop shadow effects to any Flutter widget easily.