File tree Expand file tree Collapse file tree 3 files changed +9
-5
lines changed Expand file tree Collapse file tree 3 files changed +9
-5
lines changed Original file line number Diff line number Diff line change 1+ ## 0.2.1
2+
3+ * Prepare for breaking ` package:http ` change.
4+
15## 0.2.0
26
37* ** breaking change** Make sure the ` saveTo ` method returns a ` Future ` so it can be awaited and users are sure the file has been written to disk.
1216
1317## 0.1.0
1418
15- - Initial open-source release
19+ - Initial open-source release
Original file line number Diff line number Diff line change 33// found in the LICENSE file.
44
55import 'dart:convert' ;
6+ import 'dart:html' ;
67import 'dart:typed_data' ;
78
89import 'package:http/http.dart' as http show readBytes;
910import 'package:meta/meta.dart' ;
10- import 'dart:html' ;
1111
12- import '../web_helpers/web_helpers.dart' ;
1312import './base.dart' ;
13+ import '../web_helpers/web_helpers.dart' ;
1414
1515/// A CrossFile that works on web.
1616///
@@ -82,7 +82,7 @@ class XFile extends XFileBase {
8282 if (_data != null ) {
8383 return Future .value (UnmodifiableUint8ListView (_data));
8484 }
85- return http.readBytes (path);
85+ return http.readBytes (Uri . parse ( path) );
8686 }
8787
8888 @override
Original file line number Diff line number Diff line change 11name : cross_file
22description : An abstraction to allow working with files across multiple platforms.
33homepage : https://github.com/flutter/plugins/tree/master/packages/cross_file
4- version : 0.2.0
4+ version : 0.2.1
55
66dependencies :
77 flutter :
You can’t perform that action at this time.
0 commit comments