checkBox1 function
dynamic
checkBox1()
Implementation
checkBox1(String text, Color color, TextStyle style, bool init, Function(bool?) callback){
return Row(
children: <Widget>[
SizedBox(
height: 24.0,
width: 24.0,
child: Checkbox(
value: init,
activeColor: color,
onChanged: callback
),),
SizedBox(width: 10,),
Flexible(
child: FittedBox(
fit: BoxFit.scaleDown,
child: Text(text, style: style, overflow: TextOverflow.ellipsis,)))
],
);
}