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 :)
This package exports one constant:
Displays the transparent image.
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', ), );
Add this to your package's pubspec.yaml file:
dependencies: transparent_image: ^1.0.0
You can install packages from the command line:
$ pub get
$ flutter packages get
Alternatively, your editor might support
pub get or
flutter packages get.
Check the docs for your editor to learn more.
Now in your Dart code, you can use:
|1.0.0||Mar 12, 2019|
|0.1.0||Feb 23, 2018|
Describes how popular the package is relative to other packages. [more]
Code health derived from static analysis. [more]
Reflects how tidy and up-to-date the package is. [more]
Weighted score of the above. [more]
We analyzed this package on Mar 12, 2019, and provided a score, details, and suggestions below. Analysis was completed with status completed using:
Detected platforms: Flutter, web, other
No platform restriction found in primary library
Document public APIs. (-1 points)
2 out of 2 API elements have no dartdoc comment.Providing good documentation for libraries, classes, functions, and other API elements improves code readability and helps developers find and use your API.
Maintain an example. (-10 points)
Create a short demo in the
example/ directory to show how to use this package.
Common filename patterns include
transparent_image.dart. Packages with multiple examples should provide
For more information see the pub package layout conventions.
|Dart SDK||>=1.24.1 <3.0.0|