Skip to content

Widget disappears using pixelsForCoordinate and positioned #869

@WalterPrz

Description

@WalterPrz

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions