How to dynamically position a Flutter OverlayEntry above or below a button based on available screen space?
I'm developing a Flutter app where I use an OverlayEntry to display a dropdown-like widget below a button when it is clicked. However, the content of the overlay has dynamic height based on the items inside. If there’s not enough…