Great package!
Sometimes it is also valuable to obtain the imageprovider in the imageBuilder constructor.
Currently it looks like this:
typedef OctoImageBuilder = Widget Function(BuildContext context, Widget child);
Hence I'd like it changed to
typedef OctoImageBuilder = Widget Function(BuildContext context, Widget child, Imageprovider image);
Had a look at CachedNetworkImage, and did a workaround:
ImageProvider imageProvider =...
return OctoImage(
image: imageProvider,
...
imageBuilder: (context, _) => here i'm using the imageProvider
);
but would be more slick to have the imageprovider directly in the imageBuilder's constructor
Reactions are currently unavailable
Great package!
Sometimes it is also valuable to obtain the imageprovider in the imageBuilder constructor.
Currently it looks like this:
typedef OctoImageBuilder = Widget Function(BuildContext context, Widget child);
Hence I'd like it changed to
typedef OctoImageBuilder = Widget Function(BuildContext context, Widget child, Imageprovider image);
Had a look at CachedNetworkImage, and did a workaround:
ImageProvider imageProvider =... return OctoImage( image: imageProvider, ... imageBuilder: (context, _) => here i'm using the imageProvider );but would be more slick to have the imageprovider directly in the imageBuilder's constructor