The argument type ‘Object’ can’t be assigned to the parameter type ‘ImageProvider’

Hey this is currently an issue I opened in the flutter repo with dart 2.12. A simple workaround you could make in the meantime is just to cast the 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) : … Read more

Missing 1 required positional argument

You have not actually created an object yet. For instance, you would want to write: first = classname() instead of just first = classname At the moment, how you wrote it, first is pointing to a class. E.g., if you ask what first is, you’d get: <class ‘__main__.classname’> However, after instantiating it (by simply adding … Read more