失去焦点时颤动卡片背景发生变化

问题描述

我有这张卡:

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;
                    });
                  },],);

当一张卡片失去焦点时(当我选择另一张卡片的单选按钮时)所有卡片的背景,但当前和以前选择的卡片会变成某种紫色:

在点击任何东西之前,一切看起来都很好。单击第一个单选按钮后:

enter image description here

点击第二个单选按钮后:

enter image description here

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)

相关问答

Selenium Web驱动程序和Java。元素在(x,y)点处不可单击。其...
Python-如何使用点“。” 访问字典成员?
Java 字符串是不可变的。到底是什么意思?
Java中的“ final”关键字如何工作?(我仍然可以修改对象。...
“loop:”在Java代码中。这是什么,为什么要编译?
java.lang.ClassNotFoundException:sun.jdbc.odbc.JdbcOdbc...