TCard constructor

const TCard({
  1. Key? key,
  2. Widget? child,
  3. String? title,
  4. String? subtitle,
  5. IconData? icon,
  6. Widget? titleWidget,
  7. Widget? subtitleWidget,
  8. Widget? iconWidget,
  9. Widget? trailing,
  10. Widget? header,
  11. double headerGap = 14,
  12. TextStyle? titleStyle,
  13. TextStyle? subtitleStyle,
  14. Color? iconColor,
  15. EdgeInsetsGeometry? margin,
  16. double? elevation,
  17. BorderRadius? borderRadius,
  18. Color? backgroundColor,
  19. EdgeInsetsGeometry padding = const EdgeInsets.symmetric(vertical: 12, horizontal: 16),
  20. VoidCallback? onTap,
  21. Color? shadowColor,
  22. Color? borderColor,
  23. Color? hoverColor,
  24. Color? splashColor,
  25. Color? highlightColor,
  26. List<BoxShadow>? shadow,
  27. Clip? clipBehavior,
})

Creates a Material Design card widget.

Implementation

const TCard({
  super.key,
  this.child,
  this.title,
  this.subtitle,
  this.icon,
  this.titleWidget,
  this.subtitleWidget,
  this.iconWidget,
  this.trailing,
  this.header,
  this.headerGap = 14,
  this.titleStyle,
  this.subtitleStyle,
  this.iconColor,
  this.margin,
  this.elevation,
  this.borderRadius,
  this.backgroundColor,
  this.padding = const EdgeInsets.symmetric(vertical: 12, horizontal: 16),
  this.onTap,
  this.shadowColor,
  this.borderColor,
  this.hoverColor,
  this.splashColor,
  this.highlightColor,
  this.shadow,
  this.clipBehavior,
});