Read page as text

NIB / PLAYGROUND

Accordion playground — NibComponents

Try accordion in Flutter. Coordinate expandable sections, then decide whether several can remain open.

Open interactive view

Coordinate expandable sections, then decide whether several can remain open.

Read the full component guide and API

Public widgets and APIs

  • NibAccordion
  • NibAccordionController
  • NibAccordionItem

Example Dart code

NibAccordion(
  items: const [
    NibAccordionItem(title: Text('How does it work?'), content: Text('Tap the header to reveal the answer.')),
    NibAccordionItem(title: Text('Can several stay open?'), content: Text('Set allowMultipleOpen to true.')),
  ],
)

Playground controls

ControlTypeOptions or rangeHelp
Allow multiple sectionstoggle
Disable the second sectiontoggle
Animate expansiontoggle
First section titletext