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

Doesn't work with device_preview #1

Open
dannylin108 opened this issue Aug 29, 2022 · 6 comments
Open

Doesn't work with device_preview #1

dannylin108 opened this issue Aug 29, 2022 · 6 comments
Assignees

Comments

@dannylin108
Copy link

When testing with device_preview highlighted area is misplaced.

See the screenshot.

image

@YowFung
Copy link
Owner

YowFung commented Aug 29, 2022

Hi @dannylin108, can you provide your sample code?

@YowFung
Copy link
Owner

YowFung commented Aug 29, 2022

This is probably due to MediaQuery.of(context).size. The device_preview plugin cannot correctly adjust the screen size.

Related issue: aloisdeniel/flutter_device_preview#80

@dannylin108
Copy link
Author

dannylin108 commented Aug 29, 2022

Hi @dannylin108, can you provide your sample code?

I tried to wrap the example from your package with device_preview, but couldn't make it working 🤷
Sorry..

@YowFung
Copy link
Owner

YowFung commented Aug 29, 2022

Hi @dannylin108, can you provide relevant error information or screenshots?

@dannylin108
Copy link
Author

See the attached patch (apply it to the example from your package).

image
device_preview.patch.txt

@YowFung YowFung self-assigned this Aug 30, 2022
@YowFung
Copy link
Owner

YowFung commented Aug 30, 2022

Hi @dannylin108
Thank you for your feedback and I will come to solve this problem when I am free.

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

No branches or pull requests

2 participants