ExpandTile function
ExpansionTile
ExpandTile(
- Widget title,
- List<
Widget> children, { - Widget? leading,
- Widget? subtitle,
- void onExpansionChanged()?,
- Widget? trailing,
- bool showTrailingIcon = true,
- bool initiallyExpanded = false,
- bool maintainState = false,
- EdgeInsetsGeometry? tilePadding,
- CrossAxisAlignment? expandedCrossAxisAlignment = CrossAxisAlignment.start,
- Alignment? expandedAlignment = Alignment.centerLeft,
- EdgeInsetsGeometry? childrenPadding = const Edges.symmetric(horizontal: 12, vertical: 4),
- Color? backgroundColor,
- Color? collapsedBackgroundColor,
- Color? textColor,
- Color? collapsedTextColor,
- Color? iconColor,
- Color? collapsedIconColor,
- ShapeBorder? shape,
- ShapeBorder? collapsedShape,
- Clip? clipBehavior,
- ListTileControlAffinity? controlAffinity = ListTileControlAffinity.leading,
- ExpansibleController? controller,
- bool? dense,
- VisualDensity? visualDensity,
- double? minTileHeight,
- bool? enableFeedback = true,
- bool enabled = true,
- AnimationStyle? expansionAnimationStyle,
Implementation
ExpansionTile ExpandTile(
Widget title,
List<Widget> children, {
Widget? leading,
Widget? subtitle,
void Function(bool)? onExpansionChanged,
Widget? trailing,
bool showTrailingIcon = true,
bool initiallyExpanded = false,
bool maintainState = false,
EdgeInsetsGeometry? tilePadding,
CrossAxisAlignment? expandedCrossAxisAlignment = CrossAxisAlignment.start,
Alignment? expandedAlignment = Alignment.centerLeft,
EdgeInsetsGeometry? childrenPadding = const Edges.symmetric(horizontal: 12, vertical: 4),
Color? backgroundColor,
Color? collapsedBackgroundColor,
Color? textColor,
Color? collapsedTextColor,
Color? iconColor,
Color? collapsedIconColor,
ShapeBorder? shape,
ShapeBorder? collapsedShape,
Clip? clipBehavior,
ListTileControlAffinity? controlAffinity = ListTileControlAffinity.leading,
ExpansibleController? controller,
bool? dense,
VisualDensity? visualDensity,
double? minTileHeight,
bool? enableFeedback = true,
bool enabled = true,
AnimationStyle? expansionAnimationStyle,
}) {
return ExpansionTile(
title: title,
children: children,
childrenPadding: childrenPadding,
controlAffinity: controlAffinity,
expandedAlignment: expandedAlignment,
expandedCrossAxisAlignment: expandedCrossAxisAlignment,
initiallyExpanded: initiallyExpanded,
onExpansionChanged: onExpansionChanged,
leading: leading,
subtitle: subtitle,
trailing: trailing,
showTrailingIcon: showTrailingIcon,
maintainState: maintainState,
tilePadding: tilePadding,
backgroundColor: backgroundColor,
collapsedBackgroundColor: collapsedBackgroundColor,
textColor: textColor,
collapsedTextColor: collapsedTextColor,
iconColor: iconColor,
collapsedIconColor: collapsedIconColor,
shape: shape,
collapsedShape: collapsedShape,
clipBehavior: clipBehavior,
controller: controller,
dense: dense,
visualDensity: visualDensity,
minTileHeight: minTileHeight,
enableFeedback: enableFeedback,
enabled: enabled,
expansionAnimationStyle: expansionAnimationStyle,
);
}