v2.0.1
transparent_image
Dart 代码中表示为 Uint8List 的透明图像。
499喜欢 10.8万近 30 天下载140Pub 分数
AndroidiOSWebmacOSWindowsLinux
Dart 代码中表示为 Uint8List 的透明图像。
以下为英文项目原文快照,最新内容请访问 GitHub。
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: kTransparentImage.
Displays the transparent image.
Image.memory(kTransparentImage);
MemoryImage(kTransparentImage);
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',
),
);