UCard constructor

const UCard({
  1. required Widget body,
  2. Widget? header,
  3. Widget? footer,
  4. List<Widget>? actions,
  5. Key? key,
  6. double elevation = 2.0,
  7. Color? color,
  8. BorderRadius borderRadius = const BorderRadius.all(Radius.circular(12)),
  9. EdgeInsets margin = const EdgeInsets.all(8),
  10. EdgeInsets padding = const EdgeInsets.all(16),
  11. VoidCallback? onTap,
  12. Color? shadowColor,
})

Implementation

const UCard({
  required this.body,
  this.header,
  this.footer,
  this.actions,
  super.key,
  this.elevation = 2.0,
  this.color,
  this.borderRadius = const BorderRadius.all(Radius.circular(12)),
  this.margin = const EdgeInsets.all(8),
  this.padding = const EdgeInsets.all(16),
  this.onTap,
  this.shadowColor,
});