buttonOut method

Widget buttonOut(
  1. void onPressed(), {
  2. double? width,
  3. double? height,
  4. int? textSize,
  5. Color textColor = const Color(0xFF333333),
})

镂空按钮

Implementation

Widget buttonOut(
  void Function() onPressed, {
  double? width,
  double? height,
  int? textSize,
  Color textColor = const Color(0xFF333333),
}) {
  return SizedBox(
    width: width ?? double.infinity,
    height: height ?? 46.h,
    child: OutlinedButton(
      onPressed: onPressed,
      child: Text(
        this,
        style: (textSize ?? 16).textStyle(textColor),
      ),
    ),
  );
}