📜  颤振中的复选框 - 任何代码示例

📅  最后修改于: 2022-03-11 14:55:33.487000             🧑  作者: Mango

代码示例4
// Please format your code

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