File tree 3 files changed +9
-5
lines changed 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
+
1
5
## 0.2.0
2
6
3
7
* ** 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.
12
16
13
17
## 0.1.0
14
18
15
- - Initial open-source release
19
+ - Initial open-source release
Original file line number Diff line number Diff line change 3
3
// found in the LICENSE file.
4
4
5
5
import 'dart:convert' ;
6
+ import 'dart:html' ;
6
7
import 'dart:typed_data' ;
7
8
8
9
import 'package:http/http.dart' as http show readBytes;
9
10
import 'package:meta/meta.dart' ;
10
- import 'dart:html' ;
11
11
12
- import '../web_helpers/web_helpers.dart' ;
13
12
import './base.dart' ;
13
+ import '../web_helpers/web_helpers.dart' ;
14
14
15
15
/// A CrossFile that works on web.
16
16
///
@@ -82,7 +82,7 @@ class XFile extends XFileBase {
82
82
if (_data != null ) {
83
83
return Future .value (UnmodifiableUint8ListView (_data));
84
84
}
85
- return http.readBytes (path);
85
+ return http.readBytes (Uri . parse ( path) );
86
86
}
87
87
88
88
@override
Original file line number Diff line number Diff line change 1
1
name : cross_file
2
2
description : An abstraction to allow working with files across multiple platforms.
3
3
homepage : https://github.com/flutter/plugins/tree/master/packages/cross_file
4
- version : 0.2.0
4
+ version : 0.2.1
5
5
6
6
dependencies :
7
7
flutter :
You can’t perform that action at this time.
0 commit comments