问题描述
我有这张卡:
Card(
elevation: 5,color: Colors.white,shape: RoundedRectangleBorder(
borderRadius: BorderRadius.circular(10.0),),child: Container(
height: 0.17 * SizeConfig.screenHeight,decoration: Boxdecoration(
image: decorationImage(
image: Assetimage("assets/images/grey_card.png"),fit: BoxFit.fill,child: Row(
children: [
SizedBox(
width: 0.05 * SizeConfig.screenWidth + 16,CircleAvatar(
foregroundColor: Colors.transparent,backgroundColor: Colors.transparent,radius: 0.08 * SizeConfig.screenWidth,backgroundImage: Assetimage("assets/images/logo_with_background.png")),Expanded(
child: Center(
child: Radio(
value: index,groupValue: test,focusColor: Colors.transparent,activeColor: Colors.black,onChanged: (value) {
setState(() {
test = index;
});
},],);
当一张卡片失去焦点时(当我选择另一张卡片的单选按钮时)所有卡片的背景,但当前和以前选择的卡片会变成某种紫色:
在点击任何东西之前,一切看起来都很好。单击第一个单选按钮后:
点击第二个单选按钮后:
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)