download_assets 1.0.4

Flutter Android iOS

Download and uncompress assets

download_assets #

This package download and uncompress to local storage all assets that are not included in your app. Some files, like images, sometimes, must not be included in your build.

Supported platforms #

  • iOS
  • Android

Methods #

  • startDownload - It start the assets download.
    • assetsUrl: Full url to zipped file
    • onProgress: It returns the download progress (optional)
    • onError: Called when any errors ocurr (optional)
    • onComplete: Called when the download is completed (optional)
  • clearAssets - Clear all downloaded assets from local storage.
  • assets Downloaded - Returns true if the assets were already downloaded, otherwise it' returns false.

Example #

You can find an example here: https://github.com/edjostenes/download_assets/tree/master/example