easy_expandable 0.1.0
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). onExpansionChangedcallback.- Lazy body building, with
maintainStateto keep collapsed content in the tree. - Configurable
duration,curve,crossAxisAlignment, andrevealAlignment. - Accessible header exposed as an expandable button.
ExpandableControllerfor programmaticexpand()/collapse()/toggle().ExpandableGroup+ExpandableGroupControllerfor accordions (one open at a time, orallowMultiple), withcollapseAll/expandAll.ExpandableHeader— an optional ready-made header (title + auto-rotating chevron) for the common case; fully custom headers remain the default.