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