roundedRectVertical method

ClipRRect roundedRectVertical(
  1. double top,
  2. double bottom
)

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

Implementation

ClipRRect roundedRectVertical(double top, double bottom) {
  return ClipRRect(
    child: this,
    borderRadius: BorderRadius.only(
        topLeft: Radius.circular(top),
        topRight: Radius.circular(top),
        bottomLeft: Radius.circular(bottom),
        bottomRight: Radius.circular(bottom)),
  );
}