Flutter : how to left aligned a checkbox

You can use CheckboxListTile widget which has property called controlAffinity. Setting it to leading will make the checkbox left aligned. Below is sample working code:

CheckboxListTile(
  controlAffinity: ListTileControlAffinity.leading,
  title: Text('I agree to the Terms and Conditions'),
  value: monVal,
  onChanged: (bool value) {
    setState(() {
      monVal = value;
    });
  },
)

And the output is:

enter image description here

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)