Skip to content

Developed in Flutter, this package download and uncompress to local storage all assets that do not be included in your app.

License

Notifications You must be signed in to change notification settings

dmaheshwari2209/download_assets

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

55 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Developed in Flutter, this package download and uncompress to local storage all assets that do not be included in your app.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Dart 77.6%
  • Ruby 19.0%
  • Swift 2.4%
  • Other 1.0%