download_assets 4.0.0
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
startDownloadmethod no longer accepts a list ofStringURLs. It now requires a list ofAssetUrlobjects instead.
3.2.0 March 14, 2024 #
- Added new callbacks (
onStartUnzipingandonDone) to thestartDownloadmethod - [BREAKING CHANGE] The
doubleparameter in theonProgresscallback 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
uncompressDelegatesto thestartDownload()method.- Description: Allows providing a list of custom decompression delegates (e.g., ZIP, RAR, etc.)
- Default value:
[UnzipDelegate()]
- Created
UnzipDelegateto decompress.ZIPfiles
3.1.0 May 29, 2023 #
- No longer necessary to specify whether the downloaded file is compressed.
Breaking Changes #
- The
assetsUrlparameter has been updated from aStringto a list ofString.
3.0.4 May 14, 2023 #
- Added feature to cancel the download
- Now allows sending
queryParametersand 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
onProgresscallback is no longer required and theonCompletecallback has been removed - All async code from the constructor was removed
- Removed
setAssetDirmethod and addedinitmethod (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
progressCallbackanderrorCallbacktoonProgressandonError - Added
onCompletecallback
1.0.1 May 18, 2020 #
- First version.