image_test_utils
image_test_utils copied to clipboard
Provide mocked responses for Image.network widgets in Flutter widget tests.
The mocked response.listen never gets called because the named parameters aren't matched. The mocked contentLength always returned the transparent image length. #4
This pull request https://github.com/roughike/image_test_utils/pull/2 is open since almost one year and is not being merged. Since then there are no responses from the @roughike . It makes me wonder if...
Current mockito version is 4.0.0, whereas this package currently depends on mockito version 3.0.0.
Resolves #1 Checked locally, no collisions, test still passes.
Hi, I'm trying to return a custom image in my tests. Using the `imageBytes` property I tried to place my bytes inside, but it seems as thought nothing gets shown...
I noticed the content length returned is always the length of the transparent image.
Without `await`, the error below occurs: ``` Asynchronous call to guarded function leaked. You must use "await" with all Future-returning test APIs. ```