Card constructor
const
Card({
- Key? key,
- Widget? child,
- List<
Widget> ? children, - String? thumbHash,
- double thumbHashIntensityMultiplier = 1,
- EdgeInsetsGeometry? padding,
- bool? filled,
- Color? fillColor,
- BorderRadiusGeometry? borderRadius,
- Clip? clipBehavior,
- Color? borderColor,
- double? borderWidth,
- List<
BoxShadow> ? boxShadow, - double? surfaceOpacity,
- double? surfaceBlur,
- Duration? duration,
- VoidCallback? onPressed,
- bool thumbHashUseShaders = true,
- bool dashedBorder = false,
- IconData? leadingIcon,
- Widget? leading,
- Widget? title,
- String? titleText,
- Widget? subtitle,
- String? subtitleText,
- Widget? content,
- Widget? trailing,
- AlignmentGeometry? leadingAlignment,
- AlignmentGeometry? trailingAlignment,
- AlignmentGeometry? titleAlignment,
- AlignmentGeometry? subtitleAlignment,
- AlignmentGeometry? contentAlignment,
- double? contentSpacing,
- double? titleSpacing,
- MainAxisAlignment mainAxisAlignment = MainAxisAlignment.center,
- EdgeInsetsGeometry? basicPadding,
- bool? spanning,
Implementation
const Card({
super.key,
this.child,
this.children,
this.thumbHash,
this.thumbHashIntensityMultiplier = 1,
this.padding,
this.filled,
this.fillColor,
this.borderRadius,
this.clipBehavior,
this.borderColor,
this.borderWidth,
this.boxShadow,
this.surfaceOpacity,
this.surfaceBlur,
this.duration,
this.onPressed,
this.thumbHashUseShaders = true,
this.dashedBorder = false,
this.leadingIcon,
this.leading,
this.title,
this.titleText,
this.subtitle,
this.subtitleText,
this.content,
this.trailing,
this.leadingAlignment,
this.trailingAlignment,
this.titleAlignment,
this.subtitleAlignment,
this.contentAlignment,
this.contentSpacing,
this.titleSpacing,
this.mainAxisAlignment = MainAxisAlignment.center,
this.basicPadding,
this.spanning,
});