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
startDownload
method no longer accepts a list ofString
URLs. It now requires a list ofAssetUrl
objects instead.
3.2.0 - March 14, 2024 #
- Added new callbacks (
onStartUnziping
andonDone
) to thestartDownload
method - [BREAKING CHANGE] The
double
parameter in theonProgress
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 thestartDownload()
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 aString
to a list ofString
.
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 theonComplete
callback has been removed - All async code from the constructor was removed
- Removed
setAssetDir
method and addedinit
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
anderrorCallback
toonProgress
andonError
- Added
onComplete
callback
1.0.1 - May 18, 2020 #
- First version.