internet_file 1.2.0 internet_file: ^1.2.0 copied to clipboard
A internet file getter (also optional downloader) that works in all platforms
1.2.0 #
- Fixed download files without content length! Now any files can be downloaded c:
- Deprecated api
process(double percentage)
atInternetFile.get
- Added new api
progress(int receivedLength, int contentLength)
atInternetFile.get
Usage example:
- process: (percentage) {
- print('downloadPercentage: $percentage');
- },
+progress: (receivedLength, contentLength) {
+ final percentage = receivedLength / contentLength * 100;
+ print(
+ 'download progress: $receivedLength of $contentLength bytes ( $percentage% )');
+},
1.1.0 #
- Added strong typed helper for
InternetFileStorageIO
InternetFile.get(
- storageAdditional: {
- 'filename': 'ui_icons.ttf',
- 'location': '',
- },
+ storageAdditional: storageIO.additional(
+ filename: 'ui_icons.ttf',
+ location: '',
+ ),
)
- Added
force
property forInternetFileStorageIO.get
(ignore saved file, download) - Added
debug
property forInternetFileStorageIO.get
(prints percentage) - Added
method
property forInternetFileStorageIO.get
(http method)
1.0.0+2 #
- Update readme
1.0.0+1 #
- Added description
1.0.0 #
- Initial release.