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

Retrieve assets and add them to the application's repository for use.

4.0.0 May 13, 2025 #

  • [BREAKING CHANGE] The startDownload method no longer accepts a list of String URLs. It now requires a list of AssetUrl objects instead.

3.2.0 March 14, 2024 #

  • Added new callbacks (onStartUnziping and onDone) to the startDownload method
  • [BREAKING CHANGE] The double parameter in the onProgress callback now ranges from 0 to 1, where 1 indicates the completion of the download process

3.1.1 July 12, 2023 #

  • Added the optional parameter uncompressDelegates to the startDownload() method.
    • Description: Allows providing a list of custom decompression delegates (e.g., ZIP, RAR, etc.)
    • Default value: [UnzipDelegate()]
  • Created UnzipDelegate to decompress .ZIP files

3.1.0 May 29, 2023 #

  • No longer necessary to specify whether the downloaded file is compressed.

Breaking Changes #

  • The assetsUrl parameter has been updated from a String to a list of String.

3.0.4 May 14, 2023 #

  • Added feature to cancel the download
  • Now allows sending queryParameters and extra headers in the request

3.0.3 January 27, 2023 #

  • Lint applied to project
  • All dependencies updated

3.0.0 December 27, 2021 #

  • BREAKING REFACTOR: The onProgress callback is no longer required and the onComplete callback has been removed
  • All async code from the constructor was removed
  • Removed setAssetDir method and added init method (check the documentation or example to see how to use it)

2.1.0 November 26, 2021 #

  • BREAKING REFACTOR: Complete architectural refactor
  • No more static methods/getters
  • Updated all dependencies

2.0.0 June 10, 2021 #

  • Project migrated to null-safety

1.0.4 September 25, 2020 #

  • Allow asset directory to be specified

1.0.3 May 20, 2020 #

  • Little adjustments

1.0.2 May 19, 2020 #

  • Added getter to local directory (assetsDir)
  • Added example file
  • Renamed progressCallback and errorCallback to onProgress and onError
  • Added onComplete callback

1.0.1 May 18, 2020 #

  • First version.
68
likes
150
points
4.25k
downloads

Publisher

unverified uploader

Weekly Downloads

Retrieve assets and add them to the application's repository for use.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

archive, dio, flutter, path, path_provider

More

Packages that depend on download_assets