【发布时间】:2023-02-16 22:23:07
【问题描述】:
我是一个颤振初学者。如何像下面这样在 flutter 中实现 2 个复选框列表?
Padding(
padding: const EdgeInsets.only(top: 20),
child: CheckboxlListTitle(
title: const Text('Title1'),
value: _isChecked,
onChanged: (bool? newValue) {
setState(() {
_isChecked = newValue;
});
},
activeColor: Colors.green,
controlAffinity: ListTileControlAffinity.leading,
tristate: false,
),
),
【问题讨论】:
-
你能包括你的完整示例小部件吗