Skip to content
New issue

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

screenshot mirror issue on some android device #201

Open
mobarak6amtech opened this issue Feb 16, 2025 · 8 comments
Open

screenshot mirror issue on some android device #201

mobarak6amtech opened this issue Feb 16, 2025 · 8 comments

Comments

@mobarak6amtech
Copy link

Image

After taking a screenshot, the image appears mirrored on some devices (Techno BE8).

Flutter SDK - 3.29.0

How can I fix this?

@affan3699
Copy link

Yes facing same issue on samsung A04

@raiarainne
Copy link

Same issue on Pixel tablet API 31

@hansmboron
Copy link

I'm having this problem too on Android 15 devices

@kimhak-jtrb
Copy link

I'm facing same issue

@danilosilva0
Copy link

Same here

@lukemmtt
Copy link

lukemmtt commented Feb 25, 2025

Same here. I did some research, seems that this issue was introduced with Flutter 3.29.0 with Impeller:

It only affects specific Android devices.

Fix landed in master channel flutter/flutter#163501
Cherry-pick PR not yet merged flutter/flutter#163667, should be included in 3.29.1

Workarounds:

  • disable impeller, or
  • downgrade to Flutter 3.27.4, or
  • switch to master channel, or
  • use Flutter 3.29.1 when available.

@lukemmtt
Copy link

lukemmtt commented Feb 25, 2025

If anyone has an affected device and is willing to test, I used AI to whip up a workaround, which uses a platform channel to check for the known-problematic GPU and if detected, applies a transformation to fix the image by flipping it. You can give it a shot by adding this to your pubspec.yaml:

  screenshot:
    git:
      url: https://github.com/TimeFinderApp/screenshot
      ref: e8eef03c9e1737a5a5355ab0fa69701926ab11b7

I've tested on iPhone, Mac, and Pixel 7 (unaffected platforms) and the workaround plugin works as usual; now I just need to know if it actually fixes the issue on affected platforms. (I do not have an affected device—the issue was reported to me by a user of my app.)

(Link to workaround repo)

@lukemmtt
Copy link

lukemmtt commented Mar 9, 2025

FYI this issue should be closed, as it has been resolved this week with the release of Flutter stable hotfix 3.29.1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants