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
Based on the flutter engine architecture: https://github.com/flutter/flutter/wiki/The-Engine-architecture
my guess is that the Google Maps plugin interacts/behaves differently before rendering on iOS and Android and consequently screen capture behaves differently.
It might be worth experimenting with inserting a delay before the screenshot call to allow more time for the screen image to render on iOS.
Since the Google Maps plugin is still in developer preview, and if this issue cannot be resolved, it might be worth opening an issue for the plugin.
Am having same issue over here. Google Maps has since merged in [google_maps_flutter] Take snapshot of map #2607 to the maps plugin. That said, it doesn't link up to FlutterDriver's screenshot method. Been considering workarounds, including some clever image stitching. Any chance there's a less complicated way?
Edit:
My somewhat gross workaround:
ProcessResult result =awaitProcess.run('xcrun', [
'simctl',
'io',
'booted',
'screenshot',
'/tmp/screenshots/test/screenshot_maps.png'
]);
inside the test instead of await screenshot(...) if there's a google maps obj on screen.
Hello Maurice,
First, thank you for all your work in your Flutter packages!
I’m a dev too and using your screenshots package saved my day… my week rather ;-) (Had to generate 300 screenshots / per platform…)
Everything works fine, except in this case:
My app use google maps view
https://pub.dev/packages/google_maps_flutter
and the map is not being captured in the screenshot = it’s empty
It happens only on iOS.
Made with screenshots package
Made manually
Thanks!
The text was updated successfully, but these errors were encountered: