In flutter, CheckboxListTile widget ,i can’t change this default color. How can I change it to my desire color.
I want ti customized this border color, how can i chane the border color. I only see the parameters of Checkcolor and some others that can’t change default border color?
3
Answers
you can use fillColor property for this output which takes MaterialStateProperty like bellow:
According to the documentation CheckboxListTile has a side property that simply accepts BorderSide you can use to change its color
Example from here:
You can also change color based on state.
You can change the color with this.