easy_expandable 0.1.0 copy "easy_expandable: ^0.1.0" to clipboard
easy_expandable: ^0.1.0 copied to clipboard

Wrap any widget so it smoothly expands and collapses when its header is tapped. Zero-boilerplate, controlled or uncontrolled, with lazy body building.

0.1.0 #

Initial release.

  • Expandable — wrap any widget in a tappable expand/collapse container.
  • Smooth reveal via ClipRect + animated height factor (content slides, no fade flicker).
  • Controlled and uncontrolled modes (isExpanded / initiallyExpanded).
  • onExpansionChanged callback.
  • Lazy body building, with maintainState to keep collapsed content in the tree.
  • Configurable duration, curve, crossAxisAlignment, and revealAlignment.
  • Accessible header exposed as an expandable button.
  • ExpandableController for programmatic expand() / collapse() / toggle().
  • ExpandableGroup + ExpandableGroupController for accordions (one open at a time, or allowMultiple), with collapseAll / expandAll.
  • ExpandableHeader — an optional ready-made header (title + auto-rotating chevron) for the common case; fully custom headers remain the default.
2
likes
160
points
55
downloads

Documentation

API reference

Publisher

verified publisherhotshotslabs.com

Weekly Downloads

Wrap any widget so it smoothly expands and collapses when its header is tapped. Zero-boilerplate, controlled or uncontrolled, with lazy body building.

Repository (GitHub)
View/report issues

Topics

#expandable #expansion #accordion #collapse #animation

License

MIT (license)

Dependencies

flutter

More

Packages that depend on easy_expandable