Custom Alert Dialog alignment as a Callback for Custom Widget

Custom Code

I am trying to build pop-up menu for my custom widget, I thought to cut the corner and call the menu component apart with a custom alert dialog. This method is legit however there is no option to align the alert dialog with the parent object of the custom widget. As an outcome, the pop-up menu appears in the middle of the widget and is not aligned with the menu item whose position dynamically changes based on content.

It just my thought it would simplify this process if we could pass the position of the parent object and align the component with the parent in the visual constructor.

What have you tried so far?

I know I can import the component into a custom widget and use the "exclude from compilation" option which I am not a fan of.

Did you check FlutterFlow's Documentation for this topic?
No
1 reply