BasicCard constructor

const BasicCard({
  1. Key? key,
  2. EdgeInsetsGeometry? padding,
  3. bool filled = false,
  4. Color? fillColor,
  5. BorderRadiusGeometry? borderRadius,
  6. Clip clipBehavior = Clip.none,
  7. Color? borderColor,
  8. double? borderWidth,
  9. List<BoxShadow>? boxShadow,
  10. double? surfaceOpacity,
  11. double? surfaceBlur,
  12. Duration? duration,
  13. VoidCallback? onPressed,
  14. Widget? leading,
  15. Widget? title,
  16. Widget? subtitle,
  17. Widget? content,
  18. Widget? trailing,
  19. AlignmentGeometry? leadingAlignment,
  20. AlignmentGeometry? trailingAlignment,
  21. AlignmentGeometry? titleAlignment,
  22. AlignmentGeometry? subtitleAlignment,
  23. AlignmentGeometry? contentAlignment,
  24. double? contentSpacing,
  25. double? titleSpacing,
  26. MainAxisAlignment mainAxisAlignment = MainAxisAlignment.center,
  27. EdgeInsetsGeometry? basicPadding,
})

Implementation

const BasicCard({
  super.key,
  this.padding,
  this.filled = false,
  this.fillColor,
  this.borderRadius,
  this.clipBehavior = Clip.none,
  this.borderColor,
  this.borderWidth,
  this.boxShadow,
  this.surfaceOpacity,
  this.surfaceBlur,
  this.duration,
  this.onPressed,
  this.leading,
  this.title,
  this.subtitle,
  this.content,
  this.trailing,
  this.leadingAlignment,
  this.trailingAlignment,
  this.titleAlignment,
  this.subtitleAlignment,
  this.contentAlignment,
  this.contentSpacing, // 16
  this.titleSpacing, //4
  this.mainAxisAlignment = MainAxisAlignment.center,
  this.basicPadding,
});