Skip to content
pubscout

transparent_image

2.0.1, released 4 years ago by an unverified publisher

A transparent image in Dart code, represented as a Uint8List.

WASM-ready
$ flutter pub add transparent_image
Source repository

What it does

Provides a single constant representing a transparent image as a Uint8List. It is commonly used as a placeholder inside widgets like FadeInImage before the actual image loads.

AI-written summary of version 2.0.1, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need a lightweight placeholder for FadeInImage.memoryNetwork
  • You want to display a transparent image using Image.memory or MemoryImage

Skip it when

  • You need a fully-featured image loading, caching, or manipulation library
  • You already have a transparent asset or custom bytes available

Strengths

  • Extremely simple with zero dependencies
  • Useful out of the box for FadeInImage placeholders

Weaknesses

  • Extremely narrow scope limited to a single constant

Setup

Kind
Pure Dart
Effort
Low
Code generation
No
Direct dependencies
0

none

FadeInImage.memoryNetwork(
    placeholder: kTransparentImage,
    image: 'https://picsum.photos/250?image=9',
);

Alternatives

Packages that do the same job and could replace transparent_image.

Works with

Packages commonly used together with transparent_image: ones it builds on, ones built on it, and its own family.