Flutter 组件之 CheckboxListTile

CheckboxListTile(
                activeColor: Colors.red,
                checkColor: Colors.yellow,
                value: _newValue2,
                onChanged: (newValue) {
                  setState(() {
                    _newValue2 = newValue;
                    timeDilation = 13;
                  });
                },
                title: Text('title'),
                subtitle: Text('subtitle'),
                isThreeLine: false,
                dense: true,
                secondary: Icon(Icons.hourglass_empty),
                selected: true,
                controlAffinity: ListTileControlAffinity.leading, //决定选择框的位置
              ),
上一篇:阿里云Link TEE获中金国盛移动金融技术服务认证


下一篇:与IO相关的等待事件troubleshooting-系列6