GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - Mart100/download_network_images_for_offline

BranchesTags
Open more actions menu

Latest commit

 

History

39 Commits
39 Commits

Folders and files

NameName
Last commit message
Last commit date
.github/workflows
.github/workflows
 
 
.vscode
.vscode
 
 
assets
assets
 
 
example
example
 
 
lib
lib
 
 
test
test
 
 
.gitignore
.gitignore
 
 
.metadata
.metadata
 
 
CHANGELOG.md
CHANGELOG.md
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
pubspec.lock
pubspec.lock
 
 
pubspec.yaml
pubspec.yaml
 
 

Repository files navigation

download_network_images_for_offline

Build Status

A flutter plugin to use Network Images and store them locally incase the user is offline.

In more detail:

NetworkImageForOffline will check for internet access, when it has internet access it will use the networkImage and download the file if it has not been downloaded yet. If internet access is not available it will use the downloaded file, when that file was not installed yet it will show a loading placeholder.

Arguments:

This package provides the NetworkImageForOffline package, It takes 3 required arguments: file, url, imageBuilder

The file arguments takes a File class, the file defines where it should download the image.

The url argument takes a simple string to where the network image is defined.

The imageBuilder argument takes a function that returns 2 arguments (context, ImageProvider) You can return a widget that requires the imageProvider.

Usage:

NetworkImageForOffline(
 file: File('$externalStorageDir/offlineImages/$imageName.jpg'),
 url: 'https://i.imgur.com/ViZKPUs.jpeg',
 imageBuilder: (BuildContext context, ImageProvider imageProvider) {
  return ListTile(
   leading: CircleAvatar(
    backgroundImage: imageProvider,
   ),
   title: Text('Hello'),
  );
 },
),

About

pub.dev/packages/download_network_images_for_offline

Topics

dart-packageflutterflutter-widgetimageinternet-accessoffline

Resources

Readme
BSD-3-Clause license
Activity

Stars

1 star

Watchers

1 watching

Forks

0 forks
Report repository

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.