flutter_advanced_networkimage 0.1.10 copy "flutter_advanced_networkimage: ^0.1.10" to clipboard
flutter_advanced_networkimage: ^0.1.10 copied to clipboard

discontinued
outdatedDart 1 only

An advanced image provider for flutter.

Flutter Advanced Network Imageprovider #

pub package

An advanced image provider provides caching and retrying for flutter app. Now with zoomable widget and transition to image widget.

Getting Started #

Installation #

Add this to your pubspec.yaml (or create it):

dependencies:
  flutter_advanced_networkimage: any

Then run the flutter tooling:

flutter packages get

Example #

// using image provider
new Image(
  image: new AdvancedNetworkImage(url, header: header, useDiskCache: true),
  fit: BoxFit.cover,
)
// get the disk cache folder size
bool isSucceed = await getDiskCachedImagesSize();
// clean the disk cache
int folderSize = await clearDiskCachedImages();
// using zooming widget & transitiontoimage widget
new ZoomableWidget(
  minScale: 0.3,
  maxScale: 2.0,
  child: new Container(
    child: new TranstionToImage(
      new AdvancedNetworkImage(url),
      // This is the default placeholder widget at loading status,
      // you can write your own widget with CustomPainter.
      placeholder: new CircularProgressIndicator(),
      // This is default duration
      duration: new Duration(milliseconds: 300),
    ),
  ),
)

Details in example/ folder.

Q&A #

  • Q: Why the cached files stored in documents directory instead of temporary directory?
    A: I think your cached fils should be a part of your app, and you can manual clear your cached files.

  • Q: Your zooming widget is weird while scrolling, will you improve it?
    A: Ummmmm, maybe.

122
likes
0
pub points
86%
popularity

Publisher

unverified uploader

An advanced image provider for flutter.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

crypto, flutter, http, path, path_provider, quiver

More

Packages that depend on flutter_advanced_networkimage