mapbox-maps-flutter
mapbox-maps-flutter copied to clipboard
Widget disappears using pixelsForCoordinate and positioned
I have a widget that is positioned on the screen using Positioned. The problem is that when its center goes outside the screen, the entire widget disappears, even if part of it is still visible.
I want the widget to remain visible as long as any part of it is still on the screen, instead of disappearing completely when its center is no longer in view.
Is there a way to achieve this in Flutter? Maybe an alternative to Positioned that allows the widget to stay visible even if its center is off-screen?
im usiing the onCamaraChangeListener to compute screen coordinate pixelsForCoordinate
my widget is a popup with 2 buttons, 1 for cancel and 2nd to add a feature to my custom layer