File tree Expand file tree Collapse file tree 7 files changed +16
-11
lines changed Expand file tree Collapse file tree 7 files changed +16
-11
lines changed Original file line number Diff line number Diff line change 1+ ## [ 3.1.1] - TBD
2+ * Move File to separate file. You can add it using the following import:
3+ ``` dart
4+ import 'package:flutter_cache_manager/file.dart' as cache_file;
5+ ```
6+
17## [ 3.1.0] - 2021-05-28
28* Export File from package file ([ #302 ] ( https://github.com/Baseflow/flutter_cache_manager/pull/302 ) )
39* Bugfix for eTag on Flutter Web ([ #304 ] ( https://github.com/Baseflow/flutter_cache_manager/pull/315 ) )
Original file line number Diff line number Diff line change 1+ export 'package:file/file.dart' show File;
Original file line number Diff line number Diff line change 1- export 'package:file/file.dart' show File;
2-
31export 'src/cache_manager.dart' ;
42export 'src/cache_managers/cache_managers.dart' ;
53export 'src/compat/file_fetcher.dart' ;
Original file line number Diff line number Diff line change 11name : flutter_cache_manager
22description : Generic cache manager for flutter. Saves web files on the storages of the device and saves the cache info using sqflite.
3- version : 3.1.0
3+ version : 3.1.1
44homepage : https://github.com/Baseflow/flutter_cache_manager
55
66environment :
Original file line number Diff line number Diff line change 1- import 'dart:io' as io ;
1+ import 'dart:io' ;
22
33import 'package:flutter_cache_manager/flutter_cache_manager.dart' ;
44import 'package:flutter_cache_manager/src/web/file_service.dart' ;
@@ -24,7 +24,7 @@ class MockFileService extends MockFileServiceBase {
2424class TestResponse extends FileServiceResponse {
2525 @override
2626 Stream <List <int >> get content async * {
27- var bytes = await io. File ('test/images/image-120.png' ).readAsBytes ();
27+ var bytes = await File ('test/images/image-120.png' ).readAsBytes ();
2828 var length = bytes.length;
2929 var firstPart = (length / 2 ).floor ();
3030 yield bytes.sublist (0 , firstPart);
Original file line number Diff line number Diff line change 1- import 'dart:io' as io ;
1+ import 'dart:io' ;
22import 'dart:typed_data' ;
33import 'dart:ui' ;
44
@@ -144,5 +144,5 @@ Future verifySize(
144144}
145145
146146Future <Uint8List > getExampleImage () {
147- return io. File ('test/images/image-120.png' ).readAsBytes ();
147+ return File ('test/images/image-120.png' ).readAsBytes ();
148148}
Original file line number Diff line number Diff line change 1- import 'dart:io' as io ;
1+ import 'dart:io' ;
22
33import 'package:collection/collection.dart' ;
44import 'package:flutter_cache_manager/src/storage/cache_info_repositories/json_cache_info_repository.dart' ;
@@ -30,14 +30,14 @@ void main() {
3030 });
3131
3232 test ('Create repository with directory is successful' , () {
33- var repository = JsonCacheInfoRepository .withFile (io. File (path));
33+ var repository = JsonCacheInfoRepository .withFile (File (path));
3434 expect (repository, isNotNull);
3535 });
3636 });
3737
3838 group ('Open and close repository' , () {
3939 test ('Open repository should not throw' , () async {
40- var repository = JsonCacheInfoRepository .withFile (io. File (path));
40+ var repository = JsonCacheInfoRepository .withFile (File (path));
4141 await repository.open ();
4242 });
4343
@@ -59,7 +59,7 @@ void main() {
5959
6060 group ('Exist and delete' , () {
6161 test ('New repository does not exist' , () async {
62- var repository = JsonCacheInfoRepository .withFile (io. File (path));
62+ var repository = JsonCacheInfoRepository .withFile (File (path));
6363 var exists = await repository.exists ();
6464 expect (exists, false );
6565 });
You can’t perform that action at this time.
0 commit comments