搜索插件、代码仓与 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 ↗