iconTextButton static method
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,
- 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),
);
}