Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The argument type 'String' can't be assigned to the parameter type 'Uri'. #1

Open
PoojanShrz opened this issue Mar 15, 2021 · 1 comment

Comments

@PoojanShrz
Copy link

PoojanShrz commented Mar 15, 2021

On the Network Handler page the following error shows up

Error: The argument type 'String' can't be assigned to the parameter type 'Uri'.
 - 'Uri' is from 'dart:core'.
    var response = await http.get(url);

It may be because of the http package which was updated to 0.13.0

@CadisRaziel
Copy link

CadisRaziel commented Aug 8, 2021

now you need to use the 'Uri.parse()'
var url = Uri.parse('http://websiteapi');

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants