enableButton static method

Widget enableButton({
  1. double width = 252,
  2. double height = 44,
  3. int tag = 0,
  4. bool enabled = true,
  5. BoxDecoration? normalBoxDecoration,
  6. BoxDecoration? disabledBoxDecoration,
  7. dynamic onTap()?,
})

是否可点击按钮

Implementation

static Widget enableButton({
  double width = 252,
  double height = 44,
  int tag = 0,
  bool enabled = true,
  BoxDecoration? normalBoxDecoration,
  BoxDecoration? disabledBoxDecoration,
  Function()? onTap
}){
  return JJCheckBox(
    width: width,
    height: height,
    tag: tag,
    enabled: enabled,
    cellDecoration: normalBoxDecoration,
    cellDisabledDecoration: disabledBoxDecoration,
    tapSplashColor: Colors.transparent,
    onTap: onTap,
  );
}