diff --git a/docs/pages/docs/accordion.mdx b/docs/pages/docs/accordion.mdx index c8090b4ca..180687452 100644 --- a/docs/pages/docs/accordion.mdx +++ b/docs/pages/docs/accordion.mdx @@ -27,8 +27,8 @@ A vertically stacked set of interactive headings that each reveal a section of c child: const Text('Yes. It adheres to the WAI-ARIA design pattern.'), ), FAccordionItem( - title: const Text('Is it Styled?'), initiallyExpanded: true, + title: const Text('Is it Styled?'), child: const Text( "Yes. It comes with default styles that matches the other components' aesthetics", ), @@ -121,8 +121,8 @@ FAccordion( child: const Text('Yes. It adheres to the WAI-ARIA design pattern.'), ), FAccordionItem( - title: const Text('Is it Styled?'), initiallyExpanded: true, + title: const Text('Is it Styled?'), child: const Text( "Yes. It comes with default styles that matches the other components' aesthetics", ), diff --git a/forui/lib/src/widgets/accordion/accordion.dart b/forui/lib/src/widgets/accordion/accordion.dart index 78b5d1f40..41fbbe17c 100644 --- a/forui/lib/src/widgets/accordion/accordion.dart +++ b/forui/lib/src/widgets/accordion/accordion.dart @@ -22,11 +22,11 @@ class FAccordion extends StatefulWidget { /// * [FAccordionController.radio] for a radio-like selection. final FAccordionController? controller; - /// The items. - final List children; - /// The style. Defaults to [FThemeData.accordionStyle]. final FAccordionStyle? style; + + /// The items. + final List children; /// Creates a [FAccordion]. const FAccordion({