You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
FlutterDriver already supports taking a screenshot, but this screenshot is based on the Flutter engine's view of the world, and as a result, omits platform-views (views that are drawn and managed by the platform).
Using a new API (e.g. nativeDriver.screenshot()), it should be possible to take a "native" screenshot, using whatever the platform provides. For example, on Android, this would likely be (a variation of) adb shell screencap, on iOS idevicescreenshot, and so on.
These screenshots will not be cropped, and may include system shell UI. The former will not be addressed at the moment, but the latter can be partially addressed by using a device's appropriate "demo mode" (sometimes called "immersive mode"), or otherwise trying to create a somewhat hermetic screenshot environment (to the best of our ability).
Platform screenshots will likely be opaque objects, because they will exist as a file on disk, not bytes.
This seems related to #102866, where the functionality of taking "screenshot"s via RepaintBoundary for PlatformViews is requested. If that's done, it would also resolve this, wouldn't it?
This seems related to #102866, where the functionality of taking "screenshot"s via RepaintBoundary for PlatformViews is requested. If that's done, it would also resolve this, wouldn't it?
I don't think so, all this is doing is adding a flutter_driver-specific API for using the platform screenshot mechanism.
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of flutter doctor -v and a minimal reproduction of the issue.
Activity
ueman commentedon Jul 24, 2024
This seems related to #102866, where the functionality of taking "screenshot"s via RepaintBoundary for PlatformViews is requested. If that's done, it would also resolve this, wouldn't it?
matanlurey commentedon Jul 24, 2024
I don't think so, all this is doing is adding a
flutter_driver-specific API for using the platform screenshot mechanism.Scaffolding for `NativeDriver` and `AndroidNativeDriver` for taking s…
Scaffolding for `NativeDriver` and `AndroidNativeDriver` for taking s…
github-actions commentedon Aug 7, 2024
This thread has been automatically locked since there has not been any recent activity after it was closed. If you are still experiencing a similar issue, please open a new bug, including the output of
flutter doctor -vand a minimal reproduction of the issue.Scaffolding for `NativeDriver` and `AndroidNativeDriver` for taking s…