ZeroExpansionTileStyle.filled constructor
ZeroExpansionTileStyle.filled({
- Widget? leading,
- Widget? trailing,
- Color? titleColor,
- Color? childrenBackgroundColor,
- Color? collapsedTitleColor,
- Color? iconColor,
- Color? collapsedIconColor,
- Color? textColor,
- Color? collapsedTextColor,
- ShapeBorder? shape,
- ShapeBorder? collapsedShape,
- EdgeInsetsGeometry? childrenPadding,
Implementation
factory ZeroExpansionTileStyle.filled(
{Widget? leading,
Widget? trailing,
/// Background color of the title when expanded
Color? titleColor,
/// Background olor of the children when expanded
Color? childrenBackgroundColor,
/// Background color of the title when collapsed
Color? collapsedTitleColor,
Color? iconColor,
Color? collapsedIconColor,
Color? textColor,
Color? collapsedTextColor,
ShapeBorder? shape,
ShapeBorder? collapsedShape,
EdgeInsetsGeometry? childrenPadding}) {
return ZeroExpansionTileStyle(
variant: AccordionVariant.filled,
leading: leading,
trailing: trailing,
titleColor: titleColor,
backgroundColor: titleColor,
childrenBackgroundColor: childrenBackgroundColor,
collapsedBackgroundColor: collapsedTitleColor,
iconColor: iconColor,
collapsedIconColor: collapsedIconColor,
textColor: textColor,
collapsedTextColor: collapsedTextColor,
shape: shape ??
Border.all(
color: ZeroColors.transparent,
width: 0,
),
collapsedShape: collapsedShape ??
Border.all(
color: ZeroColors.transparent,
width: 0,
),
childrenPadding: childrenPadding);
}