buttonOutRound method
镂空按钮 圆角
Implementation
Widget buttonOutRound(
void Function() onPressed, {
double? width,
double? height,
int? textSize,
double? borderWidth,
double? borderRadius,
Color? borderColor,
Color textColor = Colors.white,
Color bgColor = Colors.transparent,
}) {
return InkWell(
onTap: onPressed,
child: Container(
width: width,
height: height,
padding: 16.marginHV(4),
decoration: 18.boxDecoration(bgColor,borderWidth: borderWidth ?? 2),
child: Center(child: Text(this, style: TextStyle(fontSize: 14.sp, color: textColor))),
),
);
}