accordion_custom 0.1.0
accordion_custom: ^0.1.0 copied to clipboard
A customizable, zero-dependency Flutter accordion with single/multiple expand modes, nested panels, a controller, keyboard navigation, and full styling.
0.1.0 #
- Initial release.
AccordionCustomwith a slot-basedchildren:API and a lazyAccordionCustom.builderconstructor.- Single- and multiple-open modes via
AccordionMode. AccordionController(aChangeNotifier) withexpand,collapse,toggle,expandAll,collapseAll,isExpanded, andexpandedIndexes.- Per-item
initiallyExpanded,enabled, customheader/headerBuilder, and arbitrarycontent(including nested accordions). - Per-item
headerStyle/contentStylethat override the accordion-level style, so individual panels can look different. - Full styling through
AccordionHeaderStyle(background, border color/width, corner radius, padding, text style, and a rotating icon with configurable position) andAccordionContentStyle(background, padding, text style, optional divider). - Keyboard navigation (↑/↓ between headers, Enter/Space to toggle) and
Semanticsfor accessibility. - Zero dependencies; pure Dart, works on every Flutter platform.