DDSCard constructor

const DDSCard({
  1. Key? key,
  2. required String title,
  3. required String content,
  4. Widget? media,
  5. Color? backgroundColor,
  6. Color? borderColor = Colors.transparent,
  7. Color? textColor,
  8. Color? contentTextColor,
  9. CardVariant variant = CardVariant.fullWidthCard,
  10. CardShape shape = CardShape.roundedRectangle,
  11. Widget? pilledContent,
  12. double? pilledHeight = 48.0,
  13. double? pilledWidth = 200.0,
  14. double? pilledBorderRadius = 24.0,
  15. double? fullWidthCardHeight = 206.0,
  16. double? fullWidthCardWidth = 358.0,
  17. double? bannerHeight = 206.0,
  18. double? bannerWidth = 358.0,
  19. double? verticalCardHeight = 200.0,
  20. double? verticalCardWidth = 182.0,
  21. double? horizontalCardHeight = 163.0,
  22. double? horizontalCardWidth = 380.0,
  23. double? leanCardHeight = 50.0,
  24. double? leanCardWidth = 380.0,
})

Implementation

const DDSCard({
  Key? key,
  required this.title,
  required this.content,
  this.media,
  this.backgroundColor,
  this.borderColor = Colors.transparent,
  this.textColor,
  this.contentTextColor,
  this.variant = CardVariant.fullWidthCard,
  this.shape = CardShape.roundedRectangle,
  this.pilledContent,
  this.pilledHeight = 48.0,
  this.pilledWidth = 200.0,
  this.pilledBorderRadius = 24.0,
  this.fullWidthCardHeight = 206.0,
  this.fullWidthCardWidth = 358.0,
  this.bannerHeight = 206.0,
  this.bannerWidth = 358.0,
  this.verticalCardHeight = 200.0,
  this.verticalCardWidth = 182.0,
  this.horizontalCardHeight = 163.0,
  this.horizontalCardWidth = 380.0,
  this.leanCardHeight = 50.0,
  this.leanCardWidth = 380.0,
});