Answers for "flutter checkbox style"

5

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
8

flutter checkbox

bool isChecked = false;
Checkbox(
              value: isChecked,
              onChanged: (value) {
                setState(() {
                  isChecked = value!;
                });
              },
            ),
Posted by: Guest on August-27-2021
2

flutter checkbox

bool _value = true;

Checkbox(
  value: _value,
  onChanged: (bool newValue) {
    setState(() {
      _value = newValue;
    });
  },
)
Posted by: Guest on January-23-2021

Code answers related to "Dart"

Browse Popular Code Answers by Language