Skip to content
pubscout

tap_to_expand

0.7.2, released 3 years ago by an unverified publisher

Expandable widget with customizable title, content, and animation

WASM-ready
$ flutter pub add tap_to_expand
Source repository

What it does

Provides a simple widget that expands and collapses with animation. It allows custom content, title, and optional scrolling.

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

Use it when

  • Need a quick expandable section in a UI
  • Want minimal code for expandable content
  • Require basic animation and scrolling support

Skip it when

  • Complex nested expansions requiring custom animation curves
  • Need advanced state management or integration with other packages

Strengths

  • Easy to use with minimal boilerplate
  • Highly customizable title, content, and dimensions
  • Supports scrolling inside the expanded area

Weaknesses

  • Limited customization beyond provided parameters
  • No advanced animation control or theming options

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
0
Center(
  child: TapToExpand(
    title: const Text('TapToExpand'),
    content: Column(
      children: List.generate(20, (i) => Text('data $i')),
    ),
    scrollable: true,
    closedHeight: 70,
    openedHeight: 200,
  ),
);

Alternatives

Packages that do the same job and could replace tap_to_expand.

  • see_more

    Expandable text widget with trim, linkify, annotations, fade, and programmatic control