nank1ro / flutter-shadcn-ui

shadcn-ui ported in Flutter. Awesome UI components for Flutter, fully customizable.
https://mariuti.com/shadcn-ui
MIT License
657 stars 42 forks source link

Portal needs to have the anchor specified, try to infer the optimal position #46

Closed nank1ro closed 2 months ago

nank1ro commented 3 months ago

The Portal related on the anchor to determine the position of the overlay. This is fine, but requires a manual position provided by the user. Add a way to determine the optimal position, if the user has not specified manually the desired one.