Accordion
Collapsible content sections.
Installation
bash
flutter_studio add accordionbash
flutter pub add flutter_studioUsage
dart
CustomAccordion(
items: [
AccordionItem(
title: 'Section 1',
content: Text('Content for section 1'),
),
AccordionItem(
title: 'Section 2',
content: Text('Content for section 2'),
),
],
)API Reference
Properties
| Property | Type | Default | Description |
|---|---|---|---|
items | List | required | Accordion items |
allowMultiple | bool | false | Allow multiple open sections |
