CustomCard constructor

const CustomCard({
  1. required Widget child,
  2. Key? key,
  3. Color? color,
  4. Color? shadowColor,
  5. Color? surfaceTintColor,
  6. double? elevation,
  7. ShapeBorder? shape,
  8. bool borderOnForeground = true,
  9. Clip? clipBehavior,
  10. EdgeInsetsGeometry? margin = const EdgeInsets.all(0),
  11. bool semanticContainer = true,
  12. bool? expanded,
  13. EdgeInsetsGeometry? padding,
  14. Widget? title,
  15. String? titleText,
  16. Widget? action,
  17. String? actionText,
})

Card 卡片组件

Implementation

const CustomCard({
  required this.child,
  super.key,
  this.color,
  this.shadowColor,
  this.surfaceTintColor,
  this.elevation,
  this.shape,
  this.borderOnForeground = true,
  this.clipBehavior,
  this.margin = const EdgeInsets.all(0),
  this.semanticContainer = true,
  this.expanded,
  this.padding,
  this.title,
  this.titleText,
  this.action,
  this.actionText,
});