Skip to content

Commit d4ce483

Browse files
committed
feat: upgraded packages, updated changelog and version
1 parent 573c497 commit d4ce483

File tree

6 files changed

+20
-18
lines changed

6 files changed

+20
-18
lines changed

.gitignore

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,3 @@
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
@@ -16,6 +7,8 @@ build/
167
build/
178
# If you're building an application, you may want to check-in your pubspec.lock
189
pubspec.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

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
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

example/android/gradle.properties

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
org.gradle.jvmargs=-Xmx1536M
22
android.useAndroidX=true
33
android.enableJetifier=true
4+
android.enableR8=true

example/lib/main.dart

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,28 +16,29 @@ class MyApp extends StatefulWidget {
1616
/// The class with the scaffold
1717
class _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
}

example/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: flutter_exif_rotation
22
description:
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
55
author: Nadia Ghebreial Nieto <nadiagnieto@gmail.com>
66
homepage: https://github.com/NGhebreial/flutter_exif_rotation
77
repository: https://github.com/NGhebreial/flutter_exif_rotation

0 commit comments

Comments
 (0)