card method

Card card({
  1. Key? key,
  2. Color color = Colors.white,
  3. Color shadowColor = Colors.black,
  4. double elevation = 0,
  5. double radius = 4,
  6. bool borderOnForeground = true,
  7. EdgeInsetsGeometry margin = EdgeInsets.zero,
  8. Clip clipBehavior = Clip.hardEdge,
  9. bool semanticContainer = true,
})

卡片 >>>

Implementation

Card card(
    {Key? key,
    Color color = Colors.white,
    Color shadowColor = Colors.black,
    double elevation = 0,
    double radius = 4,
    bool borderOnForeground = true,
    EdgeInsetsGeometry margin = EdgeInsets.zero,
    Clip clipBehavior = Clip.hardEdge,
    bool semanticContainer = true}) {
  return Card(
    key: key,
    color: color,
    shadowColor: shadowColor,
    elevation: elevation,
    shape:
        RoundedRectangleBorder(borderRadius: BorderRadius.circular(radius)),
    borderOnForeground: borderOnForeground,
    margin: margin,
    clipBehavior: clipBehavior,
    child: this,
    semanticContainer: semanticContainer,
  );
}