No host specified in URI file

4,736

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

Share:
4,736
ARPIT JAISWAL IET Student
Author by

ARPIT JAISWAL IET Student

Updated on December 20, 2022

Comments

  • ARPIT JAISWAL IET Student
    ARPIT JAISWAL IET Student over 1 year

    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)>

    • Saiful Islam
      Saiful Islam almost 3 years
      show me your image url
    • derpirscher
      derpirscher almost 3 years
      well, what is the value of key.url?