iconTextButton static method

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

图文按钮

Implementation

static Widget iconTextButton({
  double width = 60,
  double height = 44,
  int tag = 0,
  bool isSelected = false,
  bool enabled = true,
  double space = 0,
  ImageDirection direction = ImageDirection.left,
  required Widget image,
  required Widget title,
  BoxDecoration? normalBoxDecoration,
  BoxDecoration? disabledBoxDecoration,
  BoxDecoration? selectedDecoration,
  Function()? onTap
}){
  return JJCheckBox(
    width: width,
    height: height,
    tag: tag,
    alignment: Alignment.center,
    enabled: enabled,
    isSelected: isSelected,
    cellDecoration: normalBoxDecoration,
    cellDisabledDecoration: disabledBoxDecoration,
    cellSelectedDecoration: selectedDecoration,
    tapSplashColor: Colors.transparent,
    onTap: onTap,
    child: JJIconTextWidget(image: image, title: title, space: space, direction: direction),
  );
}