DDSCard constructor
const
DDSCard({
- Key? key,
- required String title,
- required String content,
- Widget? media,
- Color? backgroundColor,
- Color? borderColor = Colors.transparent,
- Color? textColor,
- Color? contentTextColor,
- CardVariant variant = CardVariant.fullWidthCard,
- CardShape shape = CardShape.roundedRectangle,
- Widget? pilledContent,
- double? pilledHeight = 48.0,
- double? pilledWidth = 200.0,
- double? pilledBorderRadius = 24.0,
- double? fullWidthCardHeight = 206.0,
- double? fullWidthCardWidth = 358.0,
- double? bannerHeight = 206.0,
- double? bannerWidth = 358.0,
- double? verticalCardHeight = 200.0,
- double? verticalCardWidth = 182.0,
- double? horizontalCardHeight = 163.0,
- double? horizontalCardWidth = 380.0,
- double? leanCardHeight = 50.0,
- 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,
});