imageProviderBuilder property
imageProviderBuilder if you want to use custom image provider, please
pass a value to this property
By default we will use NetworkImage provider if the image url/path
is using http/https, if not then we will use FileImage provider
If you ovveride this make sure to handle the case where if the imageUrl
is in the local storage or it does exists in the system file
or use the same way we did it
Example of imageProviderBuilder customization:
imageProviderBuilder: (imageUrl) async {
// Example of using cached_network_image package
// Don't forgot to check if that image is local or network one
return CachedNetworkImageProvider(imageUrl);
}
Implementation
final ImageEmbedBuilderProviderBuilder? imageProviderBuilder;