Dart Unhandled Exception: FormatException: Invalid radix-10 number (at character 1)

I faced this problem and I solved just removing the https:// from the URL address.

If you need keep the https:// in your string for some reason, replace Uri.https to Uri.parse

You can see a complete example here: https://flutter.dev/docs/cookbook/networking/fetch-data

Leave a Comment