Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ErrorBuilder does not display when the URL is invalid #2

Open
serge66 opened this issue Jan 10, 2020 · 1 comment
Open

ErrorBuilder does not display when the URL is invalid #2

serge66 opened this issue Jan 10, 2020 · 1 comment
Assignees

Comments

@serge66
Copy link

serge66 commented Jan 10, 2020

ErrorBuilder does not display when the URL is invalid!
example:

MeetNetworkImage(
      imageUrl: "https://random.dog/3xx.jpg",
      loadingBuilder: (context) => Center(
        child: CircularProgressIndicator(),
      ),
      errorBuilder: (context, e) => Center(
        child: Text('Error appear!'),
      ),
    )
@serge66
Copy link
Author

serge66 commented Jan 10, 2020

`════════ Exception caught by image resource service ════════════════════════════════════════════════
The following _Exception was thrown while resolving an image:
Exception: Could not instantiate image codec.

When the exception was thrown, this was the stack:
#0 _futurize (dart:ui/painting.dart:4341:5)
#1 instantiateImageCodec (dart:ui/painting.dart:1718:10)
#2 PaintingBinding.instantiateImageCodec (package:flutter/src/painting/binding.dart:88:12)
#3 MemoryImage._loadAsync (package:flutter/src/painting/image_provider.dart:714:18)
#4 MemoryImage.load (package:flutter/src/painting/image_provider.dart:706:14)
...
Image provider: MemoryImage(Uint8List#a31aa, scale: 1.0)
Image configuration: ImageConfiguration(bundle: PlatformAssetBundle#ee1cc(), devicePixelRatio: 3.5, locale: zh_Hans_CN, textDirection: TextDirection.ltr, platform: android)
Image key: MemoryImage(Uint8List#a31aa, scale: 1.0)`

@onatcipli onatcipli self-assigned this Jan 19, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants