Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Scheme not starting with alphabetic character (at character 1) DART

Tags:

dart

i just tried to get an image from network using this function

 Completer<ImageInfo> completer = Completer();
  Future<ui.Image> getImage(String path) async {
    [var img = new NetworkImage(path);
    img.resolve(ImageConfiguration()).addListener(ImageStreamListener((ImageInfo info,bool _){
      completer.complete(info);
    }));][1]
    ImageInfo imageInfo = await completer.future;
    return imageInfo.image;
  }

but i got a problem which i couldn't solve. Full error in attached screenshot.

like image 208
marie_12 Avatar asked Apr 20 '20 15:04

marie_12


Video Answer


1 Answers

Look around for any non-alphabetic character in URI. For me, it was a space char before 'https'.

like image 111
Shruti Avatar answered Sep 30 '22 01:09

Shruti