CustomListTile constructor
const
CustomListTile({
- Key? key,
- GestureTapCallback? onTap,
- GestureLongPressCallback? onLongPress,
- Color? textColor,
- Widget? leading,
- Widget? trailing,
- Widget? title,
- Widget? subtitle,
- VisualDensity? visualDensity,
- bool? dense = false,
- double? horizontalTitleGap = 12,
- double? minVerticalPadding = 4,
- double? minLeadingWidth = 24,
- EdgeInsetsGeometry? contentPadding = const EdgeInsets.symmetric(horizontal: 16),
- Color? tileColor,
- Color? splashColor,
- Color? selectedTileColor,
- bool selected = false,
- bool disabled = false,
- Widget? trailingBottom,
- double? opacity,
- BoxBorder? border,
- BorderRadius? borderRadius,
- EdgeInsets? margin = const EdgeInsets.all(0),
- CrossAxisAlignment? crossAxisAlignment,
- MainAxisAlignment? mainAxisAlignment,
- MainAxisSize mainAxisSize = MainAxisSize.min,
- TextStyle? titleStyle,
- TextStyle? subtitleStyle,
- int maxLinesTitle = 1,
- int maxLinesSubtitle = 1,
- String? textTitle,
- String? textSubtitle,
- bool invertTitlePosition = false,
Implementation
const CustomListTile({
super.key,
super.onTap,
super.onLongPress,
super.textColor,
super.leading,
super.trailing,
super.title,
super.subtitle,
super.visualDensity,
super.dense = false,
super.horizontalTitleGap = 12,
super.minVerticalPadding = 4,
super.minLeadingWidth = 24,
super.contentPadding = const EdgeInsets.symmetric(horizontal: 16),
super.tileColor,
super.splashColor,
super.selectedTileColor,
super.selected = false,
this.disabled = false,
this.trailingBottom,
this.footerLeft,
this.footerRight,
this.opacity,
this.border,
this.borderRadius,
this.margin = const EdgeInsets.all(0),
this.crossAxisAlignment,
this.mainAxisAlignment,
this.mainAxisSize = MainAxisSize.min,
this.titleStyle,
this.subtitleStyle,
this.maxLinesTitle = 1,
this.maxLinesSubtitle = 1,
this.textTitle,
this.textSubtitle,
this.invertTitlePosition = false,
});