androiddartflutter

Change checked mark color of checkbox in flutter


I need to change check mark color of the checkbox in the flutter and there is no parameter is given to change color in Checkbox.

Checkbox(
   value: isCheck,
   activeColor: Colors.grey,
   onChanged: (bool value) {
   setState(() { isCheck = value;});
       })

dart class code

  const Checkbox({
    Key key,
    @required this.value,
    this.tristate = false,
    @required this.onChanged,
    this.activeColor,
    this.materialTapTargetSize,
  }) : assert(tristate != null),
       assert(tristate || value != null),
       super(key: key);

Solution

  • Right now I am Using -

    Flutter (Channel dev, v1.2.2,)

    Option to change the Checkmark Color is not present on stable channel.

    Checkbox(
              value: isCheck,
              checkColor: Colors.yellowAccent,  // color of tick Mark
              activeColor: Colors.grey,
              onChanged: (bool value) {
                setState(() {
                  isCheck = value;
                });
              }),