分享

Flutter 组件之 CheckboxListTile

 大前端之旅 2022-03-10
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, //决定选择框的位置
              ),

    转藏 分享 献花(0

    0条评论

    发表

    请遵守用户 评论公约

    类似文章