image_from_file_or_network 0.0.4 copy "image_from_file_or_network: ^0.0.4" to clipboard
image_from_file_or_network: ^0.0.4 copied to clipboard

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
30
pub points
0%
popularity

Publisher

verified publishertrojancode.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

License

MIT (LICENSE)

Dependencies

convert, crypto, dio, flutter, path, path_provider

More

Packages that depend on image_from_file_or_network