Answers for "flutter The argument type 'Object' can't be assigned to the parameter type 'ImageProvider<Object>"

1

flutter The argument type 'Object' can't be assigned to the parameter type 'ImageProvider<Object>

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,
              ),
            ),
Posted by: Guest on September-13-2021
1

flutter The argument type 'Object' can't be assigned to the parameter type 'ImageProvider<Object>

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,
              ),
            ),
Posted by: Guest on September-13-2021

Code answers related to "flutter The argument type 'Object' can't be assigned to the parameter type 'ImageProvider<Object>"

Browse Popular Code Answers by Language