Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR DART

flutter checkbox color

bool isChecked = false;
Checkbox(
            activeColor: Colors.red, //The color to use when this checkbox is checked.
            checkColor: Colors.black, // The color to use for the check icon when this checkbox is checked.
            value: isChecked,
            onChanged: (value) {
              setState(() {
                isChecked = value!;
              });
            },
          ),
 
PREVIOUS NEXT
Tagged: #flutter #checkbox #color
ADD COMMENT
Topic
Name
5+5 =