This repository was archived by the owner on Feb 22, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +12
-19
lines changed Expand file tree Collapse file tree 4 files changed +12
-19
lines changed Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ import 'package:connectivity/connectivity.dart';
33
33
@override
34
34
initState() {
35
35
super.initState();
36
-
36
+
37
37
subscription = Connectivity().onConnectivityChanged.listen((ConnectivityResult result) {
38
38
// Got a new connectivity status!
39
39
})
@@ -43,7 +43,7 @@ initState() {
43
43
@override
44
44
dispose() {
45
45
super.dispose();
46
-
46
+
47
47
subscription.cancel();
48
48
}
49
49
```
Original file line number Diff line number Diff line change
1
+ ## 0.5.0+9
2
+
3
+ * Remove unnecessary temp video file path.
4
+
1
5
## 0.5.0+8
2
6
3
- * Fixed wrong GooglePhotos authority of image Uri
7
+ * Fixed wrong GooglePhotos authority of image Uri.
4
8
5
9
## 0.5.0+7
10
+
6
11
* Fix a crash when selecting images from yandex.disk and dropbox.
7
12
8
13
## 0.5.0+6
11
16
12
17
## 0.5.0+5
13
18
14
- Remove unnecessary camera permmision .
19
+ * Remove unnecessary camera permission .
15
20
16
21
## 0.5.0+4
17
22
18
- Preserve transparency when saving images.
23
+ * Preserve transparency when saving images.
19
24
20
25
## 0.5.0+3
21
26
Original file line number Diff line number Diff line change @@ -136,19 +136,7 @@ - (void)imagePickerController:(UIImagePickerController *)picker
136
136
return ;
137
137
}
138
138
if (videoURL != nil ) {
139
- NSData *data = [NSData dataWithContentsOfURL: videoURL];
140
- NSString *guid = [[NSProcessInfo processInfo ] globallyUniqueString ];
141
- NSString *tmpFile = [NSString stringWithFormat: @" image_picker_%@ .MOV" , guid];
142
- NSString *tmpDirectory = NSTemporaryDirectory ();
143
- NSString *tmpPath = [tmpDirectory stringByAppendingPathComponent: tmpFile];
144
-
145
- if ([[NSFileManager defaultManager ] createFileAtPath: tmpPath contents: data attributes: nil ]) {
146
- _result (tmpPath);
147
- } else {
148
- _result ([FlutterError errorWithCode: @" create_error"
149
- message: @" Temporary file could not be created"
150
- details: nil ]);
151
- }
139
+ _result (videoURL.description );
152
140
} else {
153
141
if (image == nil ) {
154
142
image = [info objectForKey: UIImagePickerControllerOriginalImage];
Original file line number Diff line number Diff line change 5
5
-
Flutter Team <[email protected] >
6
6
-
Rhodes Davis Jr. <[email protected] >
7
7
homepage : https://github.com/flutter/plugins/tree/master/packages/image_picker
8
- version : 0.5.0+8
8
+ version : 0.5.0+9
9
9
10
10
flutter :
11
11
plugin :
You can’t perform that action at this time.
0 commit comments