Skip to content

This is flutter package project , This widget that requires a url and extention of image . This widget will automatically download the image from the url and store locally in a unique name, Also it re uses when the same url is used in anywhere in the app. This widget only downloads the image once .

License

Notifications You must be signed in to change notification settings

trojancode/image_from_file_or_network

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

image_from_file_or_network

A flutter package used to display images from url

Example

This project is a flutter package that providers a widget called ImageOrNetwork. This widget requires a url and ext. It downloads image from the url and save it in a unique name and display. It automatically display the image when the same url is used any where in the app, widget reloads, or app restarted.

Examle

  import 'package:image_from_file_or_network/image_from_file_or_network.dart';

  ImageOrNetWork(
    fit: BoxFit.cover,//@required
    url: url, // url is a string type @required.
    ext:'.png', //not required and default is png
    height: 183, //@required
    width:  127, //@required
  );

For help getting started with Flutter, view our online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.

About

This is flutter package project , This widget that requires a url and extention of image . This widget will automatically download the image from the url and store locally in a unique name, Also it re uses when the same url is used in anywhere in the app. This widget only downloads the image once .

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages