pub repository
mirror.p-hatan.comtransparent_image
2.0.1A transparent image in Dart code, represented as a Uint8List.
Readme
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);
ImageProvider
MemoryImage(kTransparentImage);
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',
),
);
Contributors
- Flutter team
- Brian Egan
Changelog
Changelog
2.0.1
- Transparent image is stronger than ever, with 3 more ending bytes.
2.0.0
- Maximum Stability Unlocked.
2.0.0-nullsafety.0
- Transparent image is even stronger. It has achieved null safety. Thanks @renefloor!!!
1.0.0
- Transparent image is strong. Therefore, 1.0.
0.1.0
- It's a transparent image!
Installing
export PUB_HOSTED_URL=https://pub.mirror.p-hatan.com
flutter pub add transparent_imagepubspec.yaml
name: transparent_image
description: A transparent image in Dart code, represented as a Uint8List.
version: 2.0.1
homepage: https://github.com/brianegan/transparent_image
environment:
sdk: '>=2.12.0 <3.0.0'
Version history
| Version | Published | Archive | SHA-256 |
|---|---|---|---|
| 0.1.0 | 2018-02-23T13:05:47.406357Z | Download | 3a887ed38b6359e5a7436b4c8a2c5dbc8bbd1f77271ea52fc16c495cff8c1704 |
| 1.0.0 | 2019-03-12T12:49:20.149519Z | Download | 0a9a2f3a400afa7e322d27808be2b784c147651211a16164865e60cc535224d7 |
| 2.0.0-nullsafety.0 | 2021-01-29T15:55:43.837150Z | Download | 2c968af7cc96677e55154d53bd9ccc25ac96b85de759ec741d47daa93a8b98db |
| 2.0.0 | 2021-03-18T13:10:04.912130Z | Download | e566a616922a781489f4d91cc939b1b3203b6e4a093317805f2f82f0bb0f8dec |
| 2.0.1 | 2023-02-17T22:06:39.297646Z | Download | e8991d955a2094e197ca24c645efec2faf4285772a4746126ca12875e54ca02f |
Dependencies
No direct dependencies declared.