搜尋分類、套件與程式碼儲存庫

GitHub 儲存庫brianegan/transparent_image

transparent_image

Dart 程式碼中以 Uint8List 表示的透明影像。

transparent_image 專案封面
星標
104
分支
13
最近推送(UTC)
2024年6月30日
專案狀態
未封存

原始 README

以下為英文專案原文快照,最新內容請造訪 GitHub。

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
Brian Egan GitHub avatar
GitHub 作者

Brian Egan ↗

Montana boy living in the UK.

Lake District, UK官方網站 ↗
語言Dart

此儲存庫發佈的套件

如何選擇適合專案的儲存庫?

先依使用情境篩選,再比較專案活躍情況,最後到原始儲存庫確認使用要求。

  1. 透過儲存庫名稱、作者或描述搜尋,再依技術分類縮小範圍。
  2. 綜合星標、分支與最近推送比較專案;星標反映社群關注,不保證品質。
  3. 使用前在 GitHub 確認 README、授權條款與 Issues。

來源與維護

“A repository is the most basic element of GitHub.”

GitHub Docs — About repositories ↗