download_assets 3.0.4 copy "download_assets: ^3.0.4" to clipboard
download_assets: ^3.0.4 copied to clipboard

Download and uncompress assets in the user device basically, read the documentation for more information about this package.

style: lint

About download_assets #

This package downloads a zipped file and unzips 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
  • Windows

Methods #

  • init - Method that sets up the assetsDir and must be called on the app initialization.
  • startDownload - It start the assets download.
    • assetsUrl: Full URL to the zipped file.
    • onProgress: It returns the download progress (optional).
    • zippedFile: Zipped file that will be created (optional, default value is 'assets.zip').
  • clearAssets - Clear all downloaded assets from local storage.
  • assetsDir - Path to the files unzipped.
  • assetsDirAlreadyExists - Returns true if the assetsDir path exists.
  • assetsFileExists - Return true if the file exists.

Example #

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

57
likes
0
pub points
88%
popularity

Publisher

unverified uploader

Download and uncompress assets in the user device basically, read the documentation for more information about this package.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

archive, dio, flutter, path_provider

More

Packages that depend on download_assets