roundedRectVertical method
通用圆角,但不适用于有阴影等效果的微件
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)),
);
}