-
Notifications
You must be signed in to change notification settings - Fork 26.8k
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
[RepaintBoundary]Cannot take Screenshot of Platform Views #102866
Comments
Hi @xlyashuk, Thanks for filing the issue. I am able to reproduce the issue on stable and the master channel. On Taking the screenshot error is thrown and a blank image is displayed. The Screenshot can be taken without the CameraPreview (Platformview). A reproducible code sample can be found in the original post. flutter doctor -v (mac)
logs
Duplicate of #83856 (closed) cc: @blasten |
I also have the same problem. But in my case, I must take a screenshot of the So, is there a solution for this yet? |
This comment was marked as duplicate.
This comment was marked as duplicate.
I don't think Flutter can take a screenshot of platform provided textures today. Especially if those textures are from protected sources. I believe the linked issue was for tests. cc @blasten to confirm. |
This is the same issue as #25306, but it's not solved. Instead, #83856 turn this into a test issue, then #97853 turn this into a test coverage issue. I think @blasten has already done some good work but the scope is not correct at present. We should definitely support this in the runtime, not only for tests. |
try https://pub.dev/packages/ff_native_screenshot to get screenshot by native |
I have same problem when taking screenshot from Qr Code Scanner |
This comment was marked as duplicate.
This comment was marked as duplicate.
Do we have solution to this issue? |
Is there even any beta/master channel work on this? It seems a rudimentary feature. |
Hey Flutter-Team, is there any update on this issue? |
It still hasn't been fixed yet after 2 years. |
Does anyone have solution? |
There is workaround available here - https://pub.dev/packages/ff_native_screenshot |
@ycv005 will it take the full screenshot or can we take capture only a the widgets we need |
Steps to Reproduce
flutter run
on the code sampleExpected results: Screenshot should contain camera preview picture.
Actual results: Screenshot doesn't include camera view.
I tested it on Samsung S9, Samsung S20 using Flutter 2.10.5 and 2.13.0-0.2.pre.
Same issue happen on iOS, tested on iPhone 12 Pro Max, iOS 15.2.1, Flutter 2.10.5.
I'm aware of existing issues like #25306 which all point to resolved #83856 (comment).
However I can't confirm that this feature works.
Code sample
pubspec.yaml
flutter doctor -v
Screenshots
![](https://user-images.githubusercontent.com/14789223/166093720-a954ba61-42ae-473c-9498-76d8e560bd67.jpg)
Camera surface view:
Screenshot result:
![](https://user-images.githubusercontent.com/14789223/166094170-4723488d-89c1-4d07-adbc-915d0d664af1.jpg)
The text was updated successfully, but these errors were encountered: