Skip to content
pubscout

expand_widget

3.1.1, released 4 years ago by jesusrp98.com

Provides widgets for easily expanding and retracting widget collections or text views.

WASM-readyCopyleft license
$ flutter pub add expand_widget
Source repository

What it does

The package offers specialized widgets like ExpandChild and ExpandText that let users expand or collapse content on demand. It supports customizable indicators, animations, gesture triggers, and text limits.

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

Use it when

  • You need to hide and reveal extra content or long text blocks using an interactive toggle.
  • You want built-in support for expanding arrows, hints, and animation configurations.

Skip it when

  • You are using a license other than GNU GPL v3 and cannot comply with its terms.
  • You need a full state management solution rather than a UI expansion widget.

Strengths

  • Simple API with dedicated ExpandChild and ExpandText widgets.
  • Highly customizable expansion indicators, icons, alignment, and animations.
  • Supports MaterialLocalizations for default hint strings.

Weaknesses

  • Licensed under GNU GPL v3, which may restrict usage in proprietary or closed-source applications.
  • Limited to expansion and collapse UI patterns.

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
0
ExpandText(
  'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.',
  textAlign: TextAlign.justify,
)

Alternatives

Packages that do the same job and could replace expand_widget.