menu_button icon indicating copy to clipboard operation
menu_button copied to clipboard

Menu popup opening outside of screen, cutting off height

Open WieFel opened this issue 4 years ago • 14 comments

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:

  1. Put the MenuButton somewhere at the bottom of the screen.
  2. Add like 5 menu items.
  3. Open the menu by clicking the button.
  4. 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 Screenshot 2021-02-16 at 16 27 48

Screenshot 2021-02-16 at 16 34 53

Smartphone (please complete the following information):

  • iPhone Simulator
  • Android emulator
  • iPhone SE

Additional context

WieFel avatar Feb 16 '21 15:02 WieFel

@huextrat will you also take a look at this? Else I would give it a try and file a PR...

WieFel avatar Feb 17 '21 13:02 WieFel

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 avatar Feb 17 '21 13:02 huextrat

@huextrat perfect, thanks!

WieFel avatar Feb 17 '21 13:02 WieFel

@WieFel Have you resolved the issue somehow? In my case popup is not scrollable at the bottom of the screen.

maverick-2013 avatar Feb 19 '21 19:02 maverick-2013

@maverick-2013 not yet. Waiting for @huextrat to resolve it.

WieFel avatar Feb 19 '21 19:02 WieFel

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 avatar Feb 19 '21 19:02 huextrat

@huextrat @WieFel My widget structure is: CustomScrollView -> SliverFillRemaining -> Padding -> Column -> MenuButton.

maverick-2013 avatar Feb 19 '21 19:02 maverick-2013

@huextrat I will have a look during next week and try to solve the problem.

WieFel avatar Feb 19 '21 19:02 WieFel

@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.

WieFel avatar Feb 22 '21 15:02 WieFel

@huextrat still no news about this? 😬

WieFel avatar Mar 13 '21 12:03 WieFel

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 avatar Mar 13 '21 13:03 huextrat

@huextrat is there any update on this?

vivekebiit avatar Jul 23 '21 17:07 vivekebiit

I would really like to open the list at the top in this case

russmvr avatar Jul 26 '21 13:07 russmvr

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 :/

huextrat avatar Jul 26 '21 13:07 huextrat