File tree Expand file tree Collapse file tree 6 files changed +20
-18
lines changed Expand file tree Collapse file tree 6 files changed +20
-18
lines changed Original file line number Diff line number Diff line change 1- <<<<<<< HEAD
2- .DS_Store
3- .dart_tool /
4-
5- .packages
6- .pub /
7-
8- build /
9- =======
101# See https://www.dartlang.org/guides/libraries/private-files
112
123# Files and directories created by pub
167build /
178# If you're building an application, you may want to check-in your pubspec.lock
189pubspec.lock
10+ example /pubspec.yaml
11+ .flutter-plugins-dependencies
1912
2013# Directory created by dartdoc
2114# If you don't generate documentation locally you can remove this line.
@@ -99,4 +92,3 @@ fabric.properties
9992# Android studio 3.1+ serialized cache file
10093.idea /caches /build_file_checksums.ser
10194
102- >>>>>>> 4d92dc5f90835ff359f6354c50e7a5e4ac764ace
Original file line number Diff line number Diff line change 1+ ## 0.2.8
2+
3+ * Removed unnecessary prints by @Setti7
4+ * Return error if permissions are denied by @lColinDl
5+ * Fixes images overwriting when using multiple image picker on iOS by @bkoznov
6+ * Removed pubspec.lock to match Dart guidelines by @freitzzz
7+ * Upgraded image_picker package
8+
19## 0.2.7
210
311* Some iOS fix
Original file line number Diff line number Diff line change 11org.gradle.jvmargs =-Xmx1536M
22android.useAndroidX =true
33android.enableJetifier =true
4+ android.enableR8 =true
Original file line number Diff line number Diff line change @@ -16,28 +16,29 @@ class MyApp extends StatefulWidget {
1616/// The class with the scaffold
1717class _MyAppState extends State <MyApp > {
1818 File _image;
19+ final picker = ImagePicker ();
1920
2021 Future getImage () async {
21- File image = await ImagePicker . pickImage (source: ImageSource .gallery);
22+ final image = await picker. getImage (source: ImageSource .gallery);
2223 if (image != null && image.path != null ) {
23- image = await FlutterExifRotation .rotateImage (path: image.path);
24+ File rotatedImage = await FlutterExifRotation .rotateImage (path: image.path);
2425
2526 if (image != null ) {
2627 setState (() {
27- _image = image ;
28+ _image = rotatedImage ;
2829 });
2930 }
3031 }
3132 }
3233
3334 Future getImageAndSave () async {
34- File image = await ImagePicker . pickImage (source: ImageSource .gallery);
35+ final image = await picker. getImage (source: ImageSource .gallery);
3536 if (image != null && image.path != null ) {
36- image = await FlutterExifRotation .rotateAndSaveImage (path: image.path);
37+ File rotatedImage = await FlutterExifRotation .rotateAndSaveImage (path: image.path);
3738
3839 if (image != null ) {
3940 setState (() {
40- _image = image ;
41+ _image = rotatedImage ;
4142 });
4243 }
4344 }
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ dev_dependencies:
1717 flutter_test :
1818 sdk : flutter
1919
20- image_picker : ^0.6.2+1
20+ image_picker : ^0.6.7+12
2121 flutter_exif_rotation :
2222 path : ../
2323
Original file line number Diff line number Diff line change 11name : flutter_exif_rotation
22description :
33 Flutter plugin that fixes the picture orientation when it's took in landscape for some devices.
4- version : 0.2.7
4+ version : 0.2.8
55author : Nadia Ghebreial Nieto <nadiagnieto@gmail.com>
66homepage : https://github.com/NGhebreial/flutter_exif_rotation
77repository : https://github.com/NGhebreial/flutter_exif_rotation
You can’t perform that action at this time.
0 commit comments