CustomListTile constructor

const CustomListTile({
  1. Key? key,
  2. GestureTapCallback? onTap,
  3. GestureLongPressCallback? onLongPress,
  4. Color? textColor,
  5. Widget? leading,
  6. Widget? trailing,
  7. Widget? title,
  8. Widget? subtitle,
  9. VisualDensity? visualDensity,
  10. bool? dense = false,
  11. double? horizontalTitleGap = 12,
  12. double? minVerticalPadding = 4,
  13. double? minLeadingWidth = 24,
  14. EdgeInsetsGeometry? contentPadding = const EdgeInsets.symmetric(horizontal: 16),
  15. Color? tileColor,
  16. Color? splashColor,
  17. Color? selectedTileColor,
  18. bool selected = false,
  19. bool disabled = false,
  20. Widget? trailingBottom,
  21. Widget? footerLeft,
  22. Widget? footerRight,
  23. double? opacity,
  24. BoxBorder? border,
  25. BorderRadius? borderRadius,
  26. EdgeInsets? margin = const EdgeInsets.all(0),
  27. CrossAxisAlignment? crossAxisAlignment,
  28. MainAxisAlignment? mainAxisAlignment,
  29. MainAxisSize mainAxisSize = MainAxisSize.min,
  30. TextStyle? titleStyle,
  31. TextStyle? subtitleStyle,
  32. int maxLinesTitle = 1,
  33. int maxLinesSubtitle = 1,
  34. String? textTitle,
  35. String? textSubtitle,
  36. 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,
});