roundedRect method

ClipRRect roundedRect(
  1. double radius
)

通用圆角,但不适用于有阴影等效果的微件

Implementation

ClipRRect roundedRect(double radius) {
  return ClipRRect(
    child: this,
    borderRadius: BorderRadius.circular(radius),
  );
}