card method
Widget
card({
- Key? key,
- Color? color,
- Color? shadowColor,
- Color? surfaceTintColor,
- double? elevation = 5,
- ShapeBorder? shape,
- bool borderOnForeground = true,
- EdgeInsetsGeometry? margin,
- Clip? clipBehavior = Clip.antiAlias,
- bool semanticContainer = true,
卡片布局
Implementation
Widget card({
Key? key,
Color? color,
Color? shadowColor,
Color? surfaceTintColor,
double? elevation = 5,
ShapeBorder? shape,
bool borderOnForeground = true,
EdgeInsetsGeometry? margin,
Clip? clipBehavior = Clip.antiAlias,
bool semanticContainer = true,
}) =>
Card(
key: key,
color: color,
shadowColor: shadowColor,
surfaceTintColor: surfaceTintColor,
elevation: elevation,
shape: shape,
borderOnForeground: borderOnForeground,
margin: margin,
clipBehavior: clipBehavior,
semanticContainer: semanticContainer,
child: this,
);