Import
import 'package:flutter/widgets.dart';
import 'package:fluttyui/fluttyui.dart' as ui;Usage
const ui.Accordion(
items: [
ui.AccordionItem(
title: Text('What is FluttyUI?'),
content: Text('A Flutter toolkit built on the widgets layer.'),
),
],
)API Reference
The declarations below match the current FluttyUI source. Types are shown without the optional ui. import prefix.
Accordion
const Accordion({
super.key,
required this.items,
this.size,
this.allowMultiple = true,
this.headerPadding,
this.contentPadding,
this.divider,
this.backgroundColor,
this.borderColor = const Color(0xFFE9E9EC),
this.borderRadius,
});| Parameter | Type | Required | Default |
|---|---|---|---|
key | Key? | No | null |
items | List<AccordionItem> | Yes | — |
size | ComponentSize? | No | null |
allowMultiple | bool | No | true |
headerPadding | EdgeInsetsGeometry? | No | null |
contentPadding | EdgeInsetsGeometry? | No | null |
divider | Widget? | No | null |
backgroundColor | Color? | No | null |
borderColor | Color | No | const Color(0xFFE9E9EC) |
borderRadius | double? | No | null |
Application Setup
Place components under FluttyApp to provide theme, navigation, localization, and overlay defaults. Use theme tokens for shared appearance settings.
Source
lib/src/widgets/navigation/accordion/accordion.dart
This reference is generated from the Accordion declaration in the FluttyUI core checkout. The component catalog lists the other available building blocks.

