CardTile constructor

const CardTile({
  1. Key? key,
  2. VoidCallback? onTap,
  3. double? width,
  4. double height = kCardHeight,
  5. ImageProvider<Object>? image,
  6. Color? backgroundColor,
  7. Color? shadowColor,
  8. double? elevation,
  9. ShapeBorder? shape,
  10. EdgeInsetsGeometry? margin,
  11. BoxFit fit = BoxFit.cover,
  12. Widget? leading,
  13. Widget? title,
  14. Widget? subtitle,
  15. Widget? trailing,
  16. Color? iconColor,
  17. Color? textColor,
  18. EdgeInsetsGeometry? contentPadding,
})

A widget for displaying an image or text over a card widget.

Use in conjunction with ListTile.

カードウィジェットの上に画像やテキストを重ねて表示するためのウィジェット。

ListTileと併用して使ってください。

Implementation

const CardTile({
  super.key,
  this.onTap,
  this.width,
  this.height = kCardHeight,
  this.image,
  this.backgroundColor,
  this.shadowColor,
  this.elevation,
  this.shape,
  this.margin,
  this.fit = BoxFit.cover,
  this.leading,
  this.title,
  this.subtitle,
  this.trailing,
  this.iconColor,
  this.textColor,
  this.contentPadding,
});