ListTileButton constructor
const
ListTileButton({
- Key? key,
- VoidCallback? onPressed,
- VoidCallback? onLongPress,
- bool disabled = false,
- EdgeInsetsGeometry? margin,
- EdgeInsetsGeometry? padding = const EdgeInsets.symmetric(horizontal: 8),
- EdgeInsetsGeometry? bodyPadding,
- EdgeInsetsGeometry? leadingPadding,
- EdgeInsetsGeometry? trailingPadding,
- Widget? leading,
- double leadingSizeFactor = 1.0,
- required Widget body,
- Widget? subtitle,
- Widget? trailing,
- Color? backgroundColor,
- Gradient? backgroundGradient,
- Gradient? disabledBackgroundGradient,
- Color? borderColor,
- Color? shadowColor,
- double borderRadius = 10,
- double? elevation,
- Alignment contentAlignment = Alignment.centerLeft,
- 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,
});