flutter-maplibre-gl
flutter-maplibre-gl copied to clipboard
Map partly unresponsive after rotating the device
The map becomes partly unresponsive after rotating the android device.
To Reproduce Steps to reproduce the behavior:
- Go to Rotate device to landscape
- Cold start app
- The map view is not responding on the bottom side in portrait mode.

(The red area does not respond to touch)
OR:
- Go to Rotate device to portrait
- Cold start app
- The map view is not responding on the right side in portrait mode.

Related to https://github.com/digitalfabrik/ehrenamtskarte/issues/415
Probably the same issue as https://github.com/flutter-mapbox-gl/maps/issues/195
Absolutely thanks for referencing this!
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.