roundedRectHorizontal method
通用圆角,但不适用于有阴影等效果的微件
Implementation
ClipRRect roundedRectHorizontal(double left, double right) {
return ClipRRect(
child: this,
borderRadius: BorderRadius.only(
topLeft: Radius.circular(left),
topRight: Radius.circular(right),
bottomLeft: Radius.circular(left),
bottomRight: Radius.circular(right)),
);
}