gpt4 book ai didi

Flutter - CheckboxListTile - 边框颜色白色

转载 作者:行者123 更新时间:2023-12-05 00:58:00 24 4
gpt4 key购买 nike

我不知道如何更改复选框边框的颜色并将文本移近。下面是我想要实现的代码和图像。

谢谢!

enter image description here

CheckboxListTile(
title: const Text('Remember Me'),
value: _isSelected,
onChanged: (bool value) {
setState(() {
_isSelected = value;
});
},
controlAffinity: ListTileControlAffinity.leading,
),

最佳答案

试试这个解决方案:

Theme(
data: ThemeData(unselectedWidgetColor: Colors.white),
child: CheckboxListTile(....),
)

关于Flutter - CheckboxListTile - 边框颜色白色,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/58832445/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com