buttonOutRound method

Widget buttonOutRound(
  1. void onPressed(), {
  2. double? width,
  3. double? height,
  4. int? textSize,
  5. double? borderWidth,
  6. double? borderRadius,
  7. Color? borderColor,
  8. Color textColor = Colors.white,
  9. Color bgColor = Colors.transparent,
})

镂空按钮 圆角

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))),
    ),
  );
}