📅  最后修改于: 2022-03-11 14:48:05.709000             🧑  作者: Mango
bool isChecked = false;
CheckboxListTile(
title: Text('CheckboxTitle'),
subtitle: Text('subtitle'),
secondary: Icon(Icons.delete),
controlAffinity: ListTileControlAffinity.leading, // ListTileControlAffinity.trailing
value: isChecked,
onChanged: (v) {
setState(() {
isChecked = v!;
});
},
),