secondaryButton static method

Widget secondaryButton(
  1. String data, {
  2. required VoidCallback? onPressed,
  3. double? height,
  4. double? minWidth,
})

次要按钮

Implementation

static Widget secondaryButton(
  String data, {
  required VoidCallback? onPressed,
  double? height,
  double? minWidth,
}) {
  return MaterialButton(
    elevation: 0,
    padding: EdgeInsets.symmetric(horizontal: 12.w),
    shape: RoundedRectangleBorder(
      side: BorderSide(
          color: Get.isDarkMode ? Color(0xFF636366) : Color(0xFFD1D1D6),
          width: 1.w),
      borderRadius: BorderRadius.all(Radius.circular(24.r)),
    ),
    color: WiseColor.colorNormalBackground(),
    height: height ?? 40.w,
    minWidth: minWidth,
    onPressed: onPressed,
    child: Text(
      data,
      style: TextStyle(
        color: WiseColor.colorPrimary(),
        fontSize: 16.sp,
        fontFamily: 'Regular',
      ),
    ),
  );
}