Search code examples
flutterfirebasefirebase-storage

invalid internet address error in flutter


I uploaded image to Firebase Storage then I get Image's Url to Firebase Storage created link for image. Then I saved image's url in Firestore Documents. I get ImageUrl from firestore If message have a image and when I want to display a message. Before it was work but not its giving error.

Expanded(
    flex: imageFlex,
    child: SizedBox(
    child: Image.network(message["ImageUrl"].toString())),
), 

enter image description here

EDITED

firestore enter image description here controller.dart enter image description here

messages_view.dart enter image description here


Solution

  • I saw this error with version 3.10.2; it is gone with version 3.10.3. There is a fix mentioned in the release notes under dart/52373. A thread about the issue mentions that it can be avoided by unchecking "All Exceptions" under "Breakpoints" in VS Code, but I did not try that.