Answers for "flutter checkbox color"

3

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!;
              });
            },
          ),
Posted by: Guest on August-27-2021

Code answers related to "Dart"

Browse Popular Code Answers by Language