[BUG] MapOptions.applyPointerTranslucencyToLayers
causes Positioned
wrappers to fail
#1740
Labels
bug
This issue reports broken functionality or another error
P: 1 (important)
S: core
Scoped to the core flutter_map functionality
Milestone
What is the bug?
I have been using
Positioned
extensively to place buttons around the map. This was validated by some of the examples. But those widgets are required to be placed in a Stack with noRenderObjects
inbetween.In 6.0.0 widgets, instead of being put in a Stack, are all wrapped in
TranslucentPointer
objects. Which leads to positioning not working, and multiple error notices in a log.Can this thing you wanted to do be done differently? Or, are there alternatives to positioning widgets inside the map?
I thought of putting those on top of the map instead, but in that case those widgets (e.g. zoom buttons) won't have access to map state.
How can we reproduce it?
Use the
Positioned
widget as a top-level one for a map layer.Do you have a potential solution?
Make
applyPointerTranslucencyToLayers
flag not wrap widgets, instead of setting a property ofTranslucentPointer
?Alternatively, a way to properly upgrade such plugins needs to be documented.
Align
widget doesn't work for bottom-aligned buttons, for example.Platforms
Android 12
Severity
Erroneous: Prevents normal functioning and causes errors in the console
The text was updated successfully, but these errors were encountered: