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

Map partly unresponsive after rotating the device #54

Open
maxammann opened this issue Jan 12, 2022 · 3 comments
Open

Map partly unresponsive after rotating the device #54

maxammann opened this issue Jan 12, 2022 · 3 comments
Labels
bug Something isn't working

Comments

@maxammann
Copy link
Contributor

The map becomes partly unresponsive after rotating the android device.

To Reproduce
Steps to reproduce the behavior:

  1. Go to Rotate device to landscape
  2. Cold start app
  3. The map view is not responding on the bottom side in portrait mode.

port

(The red area does not respond to touch)

OR:

  1. Go to Rotate device to portrait
  2. Cold start app
  3. The map view is not responding on the right side in portrait mode.
    land

Related to digitalfabrik/entitlementcard#415

@m0nac0
Copy link
Collaborator

m0nac0 commented Jan 12, 2022

Probably the same issue as flutter-mapbox-gl/maps#195

@maxammann
Copy link
Contributor Author

Absolutely thanks for referencing this!

@maxammann
Copy link
Contributor Author

Alright so this whacky and hacky workaround works now for us:
https://github.com/digitalfabrik/ehrenamtskarte/blob/7675f039be5b914ad9c1331cc39e615ff802b5f8/frontend/lib/map/map/screen_parent_resizer.dart

It required quite some fine-tuning to cover edge cases. Make sure that when the initial render of the map happens that it is already visible. This means it should not be covered by a route which hides the map.

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
Development

No branches or pull requests

3 participants