BasicCard constructor
const
BasicCard({
- Key? key,
- EdgeInsetsGeometry? padding,
- bool filled = false,
- Color? fillColor,
- BorderRadiusGeometry? borderRadius,
- Clip clipBehavior = Clip.none,
- Color? borderColor,
- double? borderWidth,
- List<
BoxShadow> ? boxShadow, - double? surfaceOpacity,
- double? surfaceBlur,
- Duration? duration,
- VoidCallback? onPressed,
- Widget? leading,
- Widget? title,
- Widget? subtitle,
- Widget? content,
- Widget? trailing,
- AlignmentGeometry? leadingAlignment,
- AlignmentGeometry? trailingAlignment,
- AlignmentGeometry? titleAlignment,
- AlignmentGeometry? subtitleAlignment,
- AlignmentGeometry? contentAlignment,
- double? contentSpacing,
- double? titleSpacing,
- MainAxisAlignment mainAxisAlignment = MainAxisAlignment.center,
- 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,
});