card method

Widget card({
  1. Key? key,
  2. Color? color,
  3. Color? shadowColor,
  4. Color? surfaceTintColor,
  5. double? elevation = 5,
  6. ShapeBorder? shape,
  7. bool borderOnForeground = true,
  8. EdgeInsetsGeometry? margin,
  9. Clip? clipBehavior = Clip.antiAlias,
  10. 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,
    );