搜尋套件、儲存庫與 APP 分類

GitHub 儲存庫malibayram/cached_network_image_builder

cached_network_image_builder

一個用於快取網路圖片的組件;透過基本的HTTP請求檢查圖片是否已經儲存,以避免重複下載。

cached_network_image_builder 專案封面
星標
4
分支
2
最近推送(UTC)
2024年1月21日
專案狀態
未封存

原始 README

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

cached_network_image_builder

A widget to cache your network image with downloading it via using basic http request and check it if it has already stored, so doesn't need to download it again.

Thanks to pixabay for free images.

Important note:
  • The packages will download the image only once, which means it doesn't listen for changes on the server after downloading it.

How to use

  • Basic usage:
CachedNetworkImageBuilder(
    url: "https://cdn.pixabay.com/photo/2020/05/17/20/21/cat-5183427_1280.jpg",
    builder: (imageFile) {
        return Center(child: Image.file(imageFile));
    },
),
  • More customized usage:
CachedNetworkImageBuilder(
    url: "misformatted_url_or_url_that_doesn't_contain_image",
    builder: (image) {
        return Center(child: Image.file(image));
    },
    // Optional Placeholder widget until image loaded from url
    placeHolder: LinearProgressIndicator(),
    // Optional error widget
    errorWidget: Image.asset('assets/images/error_image.png'),
    // Optional describe your image extensions default values are; jpg, jpeg, gif and png
    imageExtensions: ['jpg', 'png'],
),
M. Ali Bayram GitHub avatar
GitHub 作者

M. Ali Bayram ↗

software developer #Flutter #Firebase #Angular #TensorFlow Computer Engineering PhD Candidate at Yıldız Technical University in Turkey

DersHubTurkey
語言C++CMakeDartRubySwiftHTMLCKotlinObjective-C

使用的依賴

依賴清單 5 項

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

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

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

來源與維護

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

GitHub Docs — About repositories ↗