textButton static method

Widget textButton({
  1. double width = 60,
  2. double height = 44,
  3. int tag = 0,
  4. bool isSelected = false,
  5. bool enabled = true,
  6. required Widget title,
  7. BoxDecoration? normalBoxDecoration,
  8. BoxDecoration? disabledBoxDecoration,
  9. BoxDecoration? selectedDecoration,
  10. dynamic onTap()?,
})

文字按钮

Implementation

static Widget textButton({
  double width = 60,
  double height = 44,
  int tag = 0,
  bool isSelected = false,
  bool enabled = true,
  required Widget title,
  BoxDecoration? normalBoxDecoration,
  BoxDecoration? disabledBoxDecoration,
  BoxDecoration? selectedDecoration,
  Function()? onTap
}){
  return JJCheckBox(
    width: width,
    height: height,
    tag: tag,
    enabled: enabled,
    isSelected: isSelected,
    cellDecoration: normalBoxDecoration,
    cellDisabledDecoration: disabledBoxDecoration,
    cellSelectedDecoration: selectedDecoration,
    tapSplashColor: Colors.transparent,
    onTap: onTap,
    child: title,
  );
}