Skip to content
Advertisement

The argument type ‘String’ can’t be assigned to the parameter type ‘Uri’. Flutter

I’m having a trouble, why I’m getting this error in my app flutter main.dart I just follow this reference link. It would be great if anybody could figure out, thank you so much in advance!.

Here’s the error part

JavaScript

enter image description here

Advertisement

Answer

You need to parse your URLs now, use it like this:

JavaScript
User contributions licensed under: CC BY-SA
8 People found this is helpful
Advertisement