accordion_custom 0.1.0 copy "accordion_custom: ^0.1.0" to clipboard
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.
  • AccordionCustom with a slot-based children: API and a lazy AccordionCustom.builder constructor.
  • Single- and multiple-open modes via AccordionMode.
  • AccordionController (a ChangeNotifier) with expand, collapse, toggle, expandAll, collapseAll, isExpanded, and expandedIndexes.
  • Per-item initiallyExpanded, enabled, custom header/headerBuilder, and arbitrary content (including nested accordions).
  • Per-item headerStyle/contentStyle that 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) and AccordionContentStyle (background, padding, text style, optional divider).
  • Keyboard navigation (↑/↓ between headers, Enter/Space to toggle) and Semantics for accessibility.
  • Zero dependencies; pure Dart, works on every Flutter platform.
0
likes
160
points
26
downloads
screenshot

Documentation

API reference

Publisher

verified publisheroktajianto.com

Weekly Downloads

A customizable, zero-dependency Flutter accordion with single/multiple expand modes, nested panels, a controller, keyboard navigation, and full styling.

Repository (GitHub)
View/report issues

Topics

#accordion #expansion #ui #widget #collapse

License

MIT (license)

Dependencies

flutter

More

Packages that depend on accordion_custom