This Pull Request enhances the mockNetworkImages utility method by introducing an optional imageMockProvider parameter. This allows users to provide custom mock image data based on the URI. It refactors the HttpClient creation process to allow dynamic generation of mock responses based on requested URIs using this provider. Additionally, default mock data for SVG file type is provided.
Also, fix flutter_svg compatibility.
closes #239
Type of Change
[x] โจ New feature (non-breaking change which adds functionality)
[x] ๐ ๏ธ Bug fix (non-breaking change which fixes an issue)
[ ] โ Breaking change (fix or feature that would cause existing functionality to change)
Status
READY
Breaking Changes
NO
Description
This Pull Request enhances the
mockNetworkImages
utility method by introducing an optionalimageMockProvider
parameter. This allows users to provide custom mock image data based on the URI. It refactors theHttpClient
creation process to allow dynamic generation of mock responses based on requested URIs using this provider. Additionally, default mock data for SVG file type is provided.Also, fix
flutter_svg
compatibility.closes #239
Type of Change