IconListTileButton constructor

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

Implementation

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