si_accordion 0.1.0

SDKflutter
Platformandroidioswindowslinuxmacosweb

This is an accordion widget developed using flutter, Users can configure the buttons in the widget by themselves, Set relevant colors, icons, and text.

SIAccordion

This is a flutter accordion package written in dart for flutter developers.

Display

Getting Started

SIAccordion

ParametersCategoriesDescription
childrenList < SIAccordionCell >widget
titleStyleSIAccordionTitleStyle?Uniformly set the display parameters of the title
cellStyleSIAccordionCellStyle?Uniformly set the display parameters of the cell
physicsScrollPhysicsThe default is ClampingScrollPhysics
openCountintThe number that can be expanded at the same time
spacingdoubleEach cell spacing

SIAccordionCell < T >

ParametersCategoriesDescription
titleStringtitle of content option
onTapVoidCallback?Execute function after tap
onTapCallBackKeyvoid Function(T)?Return the key after clicking the content option
childMapMap < T, String >?Content options when accordion is turned on
initSelectKeyT?key to set initial selection
childWidget?key to set initial selection
titleStyleSIAccordionTitleStyle?Set the displayed parameters of the title, and those set by SIAccordion will be ignored
cellStyleSIAccordionCellStyle?Set the displayed parameters of the cell, and those set by SIAccordion will be ignored

SIAccordionTitleStyle

ParametersCategoriesDescription
titlePaddingEdgeInsetsGeometryPadding of the entire title block
backgroundColorColor?The background color of the title block
highlightColorColor?clicked wave color
titleTextPaddingEdgeInsetsGeometryTitle text padding
titleStyleTextStyletitle text style
onTapIconIconThe icon displayed on the right when there is only onTap parameter
selectValuePaddingEdgeInsetsGeometrytitle shows the filling of the cell selection parameters
selectValueStyleTextStyletitle displays the style of cell selection parameters
onOpenIconIconIf there are child components, click to expand the icon displayed on the right.
borderColorColorBottom hem color
borderIndentdoubleBottom hem indent
borderHeightdoubleBottom hem height

SIAccordionCellStyle

ParametersCategoriesDescription
cellPaddingEdgeInsetsGeometryPadding of the entire cell block
backgroundColorColor?The background color of the cell block
highlightColorColor?clicked wave color
labelPaddingEdgeInsetsGeometrycell text padding
labelStyleTextStylecell text style
selectedIconIconcell The icon displayed to the right of the selected parameter
selectedBackgroundColorColor?cell The background color of the selected parameter
borderColorColorBottom hem color
borderIndentdoubleBottom hem indent
borderHeightdoubleBottom hem height