ListTileButton constructor

const ListTileButton({
  1. Key? key,
  2. VoidCallback? onPressed,
  3. VoidCallback? onLongPress,
  4. bool disabled = false,
  5. EdgeInsetsGeometry? margin,
  6. EdgeInsetsGeometry? padding = const EdgeInsets.symmetric(horizontal: 8),
  7. EdgeInsetsGeometry? bodyPadding,
  8. EdgeInsetsGeometry? leadingPadding,
  9. EdgeInsetsGeometry? trailingPadding,
  10. Widget? leading,
  11. double leadingSizeFactor = 1.0,
  12. required Widget body,
  13. Widget? subtitle,
  14. Widget? trailing,
  15. Color? backgroundColor,
  16. Gradient? backgroundGradient,
  17. Gradient? disabledBackgroundGradient,
  18. Color? borderColor,
  19. Color? shadowColor,
  20. double borderRadius = 10,
  21. double? elevation,
  22. Alignment contentAlignment = Alignment.centerLeft,
  23. double minHeight = 60.0,
})

Implementation

const ListTileButton({
  super.key,
  this.onPressed,
  this.onLongPress,
  this.disabled = false,
  this.margin,
  this.padding = const EdgeInsets.symmetric(horizontal: 8),
  this.bodyPadding,
  this.leadingPadding,
  this.trailingPadding,
  this.leading,
  this.leadingSizeFactor = 1.0,
  required this.body,
  this.subtitle,
  this.trailing,
  this.backgroundColor,
  this.backgroundGradient,
  this.disabledBackgroundGradient,
  this.borderColor,
  this.shadowColor,
  this.borderRadius = 10,
  this.elevation,
  this.contentAlignment = Alignment.centerLeft,
  this.minHeight = 60.0,
});