image_from_file_or_network 0.0.4
image_from_file_or_network: ^0.0.4

Flutter Android iOS

This is a widget that downloads image from url once and shows the image whenever it comes to UI.

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.

2
likes
80
pub points
20%
popularity

Publisher

trojancode.com

This is a widget that downloads image from url once and shows the image whenever it comes to UI.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

convert, crypto, dio, flutter, path, path_provider

More

Packages that depend on image_from_file_or_network