Skip to content

🐛 [firebase_crashlytics] Handling exception in Image.network #9026

@sukhcha-in

Description

@sukhcha-in

Bug report

I'm using Image.network with errorBuilder but crashlytics is still filled with exceptions. Because of these exceptions, I'm unable to see real issues in the firebase dashboard, because thousands of exceptions are related to Image.network only. I would like not to get any of the Image.network exceptions, even if the image URL throws 404 or some other invalid status codes. Even if internet was not available at that time, it should not throw exception. I just want to show Image.asset if an image was not found on Image.network.

Steps to reproduce

Image.network(
    "https://example.com/404.png",
    errorBuilder: (BuildContext context, Object exception, StackTrace? stackTrace) {
        return Image.asset("assets/noImage.png");
    },
)

Expected behaviour

Crashlytics should not pick up exception because we are already handling it with "errorBuilder"

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions