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

Issue with google maps #11

Closed
A-EL opened this issue Sep 30, 2019 · 14 comments
Closed

Issue with google maps #11

A-EL opened this issue Sep 30, 2019 · 14 comments

Comments

@A-EL
Copy link

A-EL commented Sep 30, 2019

Hello,
I tried using this plugin with a widget with google maps in it. It captures the screen but without the maps part. It appears blank.
Appreciate if you can help.

Thanks

@SachinGanesh
Copy link
Owner

Hi, Maps will take some time to render. please use the delay parameter in capture method. this issue is discussed here #9

@pinkeshAubergine
Copy link

@SachinGanesh I have tried setting the delay of 20 Seconds but the problem is still there. Could you please look into this.

I am having full-screen google map and I am getting result like this. The complete blank screen.
Issue_20191004_150313

@jsamples
Copy link

Has there been any progress with this issue? We are experiencing the same issue with google maps

@sanekyy
Copy link

sanekyy commented Nov 3, 2019

Hey. I faced with the same problem when try to caprure screenshot from video_view.
So I think this problem related with platform view.

@SachinGanesh
Copy link
Owner

Yes. I did some testing. Its the issue with the Platform View not getting rendered while taking the screenshot.

@sanekyy
Copy link

sanekyy commented Nov 3, 2019

So, do you have an idea how to get screenshot of Platform View?

@pinkeshAubergine
Copy link

@SachinGanesh Could you please suggest any workaround for this?

@bwhiteTP
Copy link

I am also interested in a solution for this.

@toonztudio
Copy link

I can confirm this issue.
I found this problem when make a screenshot of camera too?

@sanekyy
Copy link

sanekyy commented Dec 20, 2019

I can confirm this issue.
I found this problem when make a screenshot of camera too?

This issue is related to platform views.

@CoderJava
Copy link

Any update on this issue?

@CoderJava
Copy link

I fixed it with use this plugin
native_screenshot

@ritheshSalyan
Copy link
Collaborator

we cannot capture platform views because of flutter/flutter#25306. but for google maps, you have a method named takeScreenshot maps plugin. more info check this issue

@harlanx
Copy link

harlanx commented Feb 13, 2021

In my case I needed to combine other widgets and google map in a screenshot. So what I did is wrap google map widget and a visibility widget with Image.memory in a Stack so whenever a screenshot function is executed, the .takeSnapshot method of google maps will provide the Uint8List for Image.memory widget then set the visibility to true and returns to false when it is done.

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

10 participants