We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi, some pictures I'm loading on Android 10 are shown upside down. This is the piece of code I'm using:
Media m = Media.fromJson({ "id": entity.id, "mediaType": type == AssetType.image ? "image" : "video", "height": entity.height, "width": entity.width, "creationDate": entity.createDtSecond ?? 0, }); var thumb = await m.getThumbnail(height: size, width: size, highQuality: false); return Container( child: Stack( alignment: Alignment.topCenter, children: [ Image.memory( thumb, fit: BoxFit.cover, width: double.infinity, height: double.infinity, ), ], ));
This is one of the picture as example: https://drive.google.com/file/d/1_Y7OOa9chJUSsECUHbJPIZOFg1tFaFzx/view?usp=sharing
EDIT: I think the error is the logic in rotatedBitmap method in MediaGalleryPlugin.kt
rotatedBitmap
MediaGalleryPlugin.kt
The text was updated successfully, but these errors were encountered:
Fix wrong orientation on Android 10
f277e8c
Fixes bug aloisdeniel#10
To use this fix in your flutter project, add this to the pubspec.yaml
pubspec.yaml
media_gallery: git: url: git://github.com/rignaneseleo/media_gallery ref: f277e8c5955bc824feb700600d641df75329124e
Sorry, something went wrong.
No branches or pull requests
Hi, some pictures I'm loading on Android 10 are shown upside down.
This is the piece of code I'm using:
This is one of the picture as example: https://drive.google.com/file/d/1_Y7OOa9chJUSsECUHbJPIZOFg1tFaFzx/view?usp=sharing
EDIT: I think the error is the logic in
rotatedBitmap
method inMediaGalleryPlugin.kt
The text was updated successfully, but these errors were encountered: