📌  相关文章
📜  颤振参数类型&#39;Object&#39;不能分配给参数类型&#39;ImageProvider<Object> - 无论代码示例

📅  最后修改于: 2022-03-11 15:00:14.129000             🧑  作者: Mango

代码示例1
decoration:  BoxDecoration(
              shape: BoxShape.circle,
              color: Colors.blueAccent,
              border: Border.all(
                  color: Colors.blueAccent,
                  width: 20.0,
                  style: BorderStyle.solid),
              image:  DecorationImage(
                fit: BoxFit.cover,
                image: myMarkerThumb != 'noImage'
                    ? NetworkImage(myMarkerThumb)
                    : AssetImage('assets/images/noImageAvailable.png') as ImageProvider,
              ),
            ),