buildCheckButton method
Implementation
Widget buildCheckButton() {
return GestureDetector(
child: Container(
height: size.height,
padding: EdgeInsets.only(top: 0, left: 1, right: 1, bottom: 0),
child: Row(
mainAxisAlignment: MainAxisAlignment.center,
crossAxisAlignment: CrossAxisAlignment.center,
children: [
Image.asset(
this.checked ? this.checkedImage : this.image,
fit: BoxFit.fitWidth,
width: size.height / 2,
height: size.height / 2,
),
Padding(
padding: EdgeInsets.only(top: 0, left: 5, right: 5, bottom: 0),
child: Text(
text,
textAlign: TextAlign.center,
style: TextStyle(
color: textColor,
fontSize: this.fontSize,
),
)),
])),
onTap: () {
this.checked = !this.checked;
onChanged(this.checked, this.value);
});
}