checkBox1 function

dynamic checkBox1(
  1. String text,
  2. Color color,
  3. TextStyle style,
  4. bool init,
  5. dynamic callback(
    1. bool?
    ),
)

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,)))
    ],
  );
}