dibaloke
1/15/2019 - 7:24 PM

Checkbox

bool checked = false;


Checkbox(
                value: checked,
                activeColor: Colors.purple,
                onChanged: (bool val) {
                  setState(() {
                    checked=val;
                    print(checked);
                  });
                },
              )