network_image_mock
network_image_mock copied to clipboard
Mock response for Image.network to help Flutter widget tests pass.
Hello, my tests pass when I run them locally (macos) but fail when run through github actions. I believe it is related to mocking network images in the tests but...
Hi, I tried to create a test like this, but haven't worked. ```dart await mockNetworkImagesFor(() { return tester.pumpWidget( MaterialApp( home: Image.network('https://this_image_doesnt_exist.png', errorBuilder: (_, __, ___) { return const Text('error 404');...
Hello, I'd love if this library would be able to mock svg network images too. Currently an error is thrown becase the value of the image returned has not an...
I'm trying to test a widget that has a Image.network child. The following log is provided. ``` type 'Null' is not a subtype of type 'List' in type cast When...
It would be amazing if this could be used to mock tests with [Extended Image](https://pub.dev/packages/extended_image)! Is this a possibility?
I have to use a fuzzy version (it reverts back to non-null safe) of this package as it conflicts with `integration_test` ``` Running "flutter pub get" in ... Because every...
I add `flutter_lints`. - Document: [Introducing package:flutter_lints ](https://docs.flutter.dev/release/breaking-changes/flutter-lints-package) - Package: [flutter_lints](https://pub.dev/packages/flutter_lints) And, I fix some warnings on `lib/src/network_image_mock.dart`.
this package was working fine with Image.network, but then I started using CachedNetworkImage instead, then my tests started failing I tried different ways but no luck, probably it requires some...