expandable_plus 0.2.4
expandable_plus: ^0.2.4 copied to clipboard
Expandable and collapsible panels with accordion groups for Flutter. A maintained, drop-in successor to the expandable package; adds header padding, fixes body-tap toggling.
0.2.4 #
- Fix a leak:
ExpandableNotifiercreated its ownExpandableControllerwhenever nocontrollerwas passed in, but never disposed it. This is the default path for a bareExpandablePaneland for the accordion pattern (ExpandableNotifier(group: ...)). In the accordion case the effect went beyond a passive leak:ExpandableGroupControlleronly removes a member from itsdispose(), so every panel built and then discarded (a list item removed or filtered, a route popped) left a dead controller permanently registered in the group.ExpandableNotifiernow disposes the controller it created for itself and leaves a caller-supplied controller alone, same as before.
0.2.3 #
- Install instructions now say
pub addinstead of pinning a version. The pinned number was stale by several releases and would have been stale again after the next one: the README ships frozen in the archive, so a hand-edited version line is wrong the moment anything is published. This one cannot go out of date.
0.2.2 #
- Shorten the screenshot description. pub.dev accepts up to 200 characters but scores only those under 160, so the previous release published cleanly and quietly gave up the documentation points it was meant to earn.
0.2.1 #
- Declare the demo in
pubspec.yamlso pub.dev shows it on the package page. The recording was already in the repository and in the README, but pub.dev only renders what thescreenshots:field points at, so anyone landing on the page from search saw text where the demo should have been.
0.2.0 #
- The header is now accessible.
ExpandableButtonexposes the button role and the panel's expanded state to the semantics tree, so a screen reader announces "collapsed" or "expanded" and announces the change when the user presses it. Before this the header was a bare tap target: no role, no state, and nothing said when it toggled, which left the widget unusable with assistive technology. Every header and header icon goes throughExpandableButton, so panels and accordion groups get it with no changes, and the flag follows the controller when the panel is expanded from code.
0.1.1 #
- Docs: sharpen the pub.dev description to lead with the value and the terms people search.
0.1.0 #
First release, continuing the expandable package.
- Keeps the public API of
expandable5.0.1, so existing code works after changing the import. - Accordion groups through
ExpandableGroupController, so sibling panels can be made mutually exclusive, with anallowAllCollapsedoption to keep one panel open (expandable issue #8). headerPaddingonExpandableThemeDatato control the space around the header (expandable issue #72).- Body taps now toggle a standalone
ExpandablePanel(expandable issue #50). - A worked example that compiles and runs (expandable issue #114).
