Created
March 28, 2024 12:08
-
-
Save jscarl/06e0d693fca9e3aae404bab3654eeca3 to your computer and use it in GitHub Desktop.
Hanlde 404 image from network debug print
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void main() async { | |
FlutterError.onError = (FlutterErrorDetails details) { | |
if (details.library == 'image resource service' && | |
details.exception.toString().contains('404')) { | |
print('Suppressed cachedNetworkImage Exception'); | |
return; | |
} | |
FlutterError.presentError(details); | |
}; | |
runApp(const MyApp()); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment