CheckboxListTile( title: Text("title text"), value: checkedValue, onChanged: (newValue) { setState(() { checkedValue = newValue; }); }, controlAffinity: ListTileControlAffinity.leading, // <-- leading Checkbox )
// Please format your code CheckboxListTile _ = CheckboxListTile( title: const Text("title text"), value: checkedValue, onChanged: (newValue) { setState(() { checkedValue = newValue; }); }, controlAffinity: ListTileControlAffinity.leading, // <-- leading Checkbox );