No host specified in URI file


Can Anyone help me out with this error
"======== Exception caught by image resource service ================================================
The following ArgumentError was thrown resolving an image codec:
Invalid argument(s): No host specified in URI file:///

When the exception was thrown, this was the stack:
#0 _HttpClient._openUrl (dart:_http/http_impl.dart:2658:9)
#1 _HttpClient.getUrl (dart:_http/http_impl.dart:2569:48)
#2 NetworkImage._loadAsync (package:flutter/src/painting/_network_image_io.dart:89:59)
#3 NetworkImage.load (package:flutter/src/painting/_network_image_io.dart:50:14)
#4 ImageProvider.resolveStreamForKey. (package:flutter/src/painting/image_provider.dart:504:13)>


Try adding 'http://' before your url if you are not doing it .

Answered By – imnaman

Answer Checked By – Timothy Miller (FlutterFixes Admin)

Leave a Reply

Your email address will not be published. Required fields are marked *