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

Error: The argument type 'String' can't be assigned to the parameter type 'Uri'. #37

Closed
MedwinCorreo opened this issue Mar 5, 2021 · 1 comment

Comments

@MedwinCorreo
Copy link

image

/C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/basic_utils-2.7.1/lib/src/HttpUtils.dart:24:37: Error: The argument type 'String' can't be assigned to the parameter type 'Uri'.

  • 'Uri' is from 'dart:core'.
    var response = await client.get(finalUrl, headers: headers);
    ^
    /C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/basic_utils-2.7.1/lib/src/HttpUtils.dart:81:38: Error: The argument type 'String' can't be assigned to the parameter type 'Uri'.

  • 'Uri' is from 'dart:core'.
    var response = await client.post(finalUrl, body: body, headers: headers);
    ^
    /C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/basic_utils-2.7.1/lib/src/HttpUtils.dart:144:37: Error: The argument type 'String' can't be assigned to the parameter type 'Uri'.

  • 'Uri' is from 'dart:core'.
    var response = await client.put(finalUrl, body: body, headers: headers);
    ^
    /C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/basic_utils-2.7.1/lib/src/HttpUtils.dart:203:40: Error: The argument type 'String' can't be assigned to the parameter type 'Uri'.

  • 'Uri' is from 'dart:core'.
    var response = await client.delete(finalUrl, headers: headers);

    error after flutter run
    to fix parse finalUrl to Uri

@Ephenodrom
Copy link
Owner

Already fixed with the latest version.

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