menu_button
menu_button copied to clipboard
Menu popup opening outside of screen, cutting off height
Describe the bug Similar to #5, when I have a dropdown at the end (bottom) of the screen, the drop down menu opens outside of the screen, leaving only one/two items visible. The rest is cut off.
To Reproduce Steps to reproduce the behavior:
- Put the
MenuButton
somewhere at the bottom of the screen. - Add like 5 menu items.
- Open the menu by clicking the button.
- See the menu overflow the screen at the bottom.
Expected behavior If at the bottom there is not enough space for the menu to fit, it should maybe expand in top direction!?
Screenshots
Smartphone (please complete the following information):
- iPhone Simulator
- Android emulator
- iPhone SE
Additional context
@huextrat will you also take a look at this? Else I would give it a try and file a PR...
Yes it's noted on my side I just need to find time to do it ;)
I'll keep you informed but it won't be in the next version.
@huextrat perfect, thanks!
@WieFel Have you resolved the issue somehow? In my case popup is not scrollable at the bottom of the screen.
@maverick-2013 not yet. Waiting for @huextrat to resolve it.
Indeed not yet I don't have too much time at the moment to deal with the issue, if someone wants to help me I'm a taker otherwise it will be early March I hope.
As far as scrolling is concerned you can make your list scrollable with the scrollPhysics' property.
@huextrat @WieFel My widget structure is: CustomScrollView -> SliverFillRemaining -> Padding -> Column -> MenuButton.
@huextrat I will have a look during next week and try to solve the problem.
@huextrat I am having difficulties with changing the menu opening direction to top.
Maybe you could give me some hint. It seems that PopupRoute
by default expands in bottom direction and I don't see a way to change that.
Any ideas? Would be glad if you could have a quick look.
@huextrat still no news about this? 😬
I started a small part of the functionality last week but I don't have much time right now so it's still on hold 🙁
@huextrat is there any update on this?
I would really like to open the list at the top in this case
Hi, I don't have any time to work on this project right now. If someone wants to make a PR I will take the time to validate it.
Sorry :/