Skip to content

Sheet may be displayed on the wrong window (or not displayed) #4

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

Closed
stuartmorgan-g opened this issue Jan 21, 2025 · 1 comment · Fixed by #7
Closed

Sheet may be displayed on the wrong window (or not displayed) #4

stuartmorgan-g opened this issue Jan 21, 2025 · 1 comment · Fixed by #7
Assignees
Labels
bug Something isn't working

Comments

@stuartmorgan-g
Copy link

This code is not the right way to get the window containing a Flutter view in a plugin; there is no guarantee that a) there is a key window, or b) that the key window is the window with the Flutter view.

Instead, plugins should get the window of the view returned by the plugin registrar. See file_selector for an example of reliably getting the correct window.

@EchoEllet EchoEllet self-assigned this Jan 21, 2025
EchoEllet added a commit that referenced this issue Jan 21, 2025
@EchoEllet EchoEllet added the bug Something isn't working label Jan 21, 2025
EchoEllet added a commit that referenced this issue Jan 21, 2025
EchoEllet added a commit that referenced this issue Jan 22, 2025
* fix: the sheet is smaller than expected #2, or might be displayed on the wrong window #4

* docs: remove known issue from README

* chore: set sheet min-content size

* chore: set fixed initial sheet size
@EchoEllet
Copy link
Contributor

Thanks again for the detailed report!

I expected these issues as I'm familiar with Java/Kotlin for Android, but not with macOS, iOS, or the Apple ecosystem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
2 participants