transparent_image

Creator: coderz1093

Last updated:

Add to Cart

Description:

transparent image

transparent_image #
A simple transparent image. Represented as a Uint8List, which was originally
extracted from the Flutter codebase (was private in the test package).
It's a silly, simple library, but I found I needed transparent images in a few
projects and found this is the simplest way to represent it :)
Usage #
This package exports one constant: kTransparentImage.
Image Widget #
Displays the transparent image.
Image.memory(kTransparentImage);
copied to clipboard
ImageProvider #
MemoryImage(kTransparentImage);
copied to clipboard
FadeInImage Widget #
A more useful example, and the reason I originally extracted this from the
Flutter codebase!
A complete
example
can be seen on the Flutter website.
FadeInImage.memoryNetwork(
placeholder: kTransparentImage,
image: 'https://picsum.photos/250?image=9',
),
);
copied to clipboard
Contributors #

Flutter team
Brian Egan

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Customer Reviews

There are no reviews.