Questions tagged [popupmenubutton]

41 questions
12
votes
3 answers

Flutter Override PopupMenuButton Widget to prevent soft keyboard to close

In my flutter mobile application, I use a PopupMenuButton placed at the bottom of the view. If I click on it, the soft keyboard is dismissed because the text input looses the focus I guess. So the popup menu does not show at the right place. I would…
Damien Morattel
  • 183
  • 1
  • 8
10
votes
8 answers

Remove padding from Flutter PopupMenuButton

Any ideas how I can remove the huge padding from a Flutter PopupmenuButton? Something like a shrinkWrap or even an alternative widget that can use? It's ruining the alignment of my elements. I tried setting the padding to 0 but no effect at…
Jhourlad Estrella
  • 3,545
  • 4
  • 37
  • 66
8
votes
2 answers

Custom shape of PopupMenuButton in flutter

I wan to change the shape of my PopupMenuButton in flutter, want to add a triangle on top as shown in below picture, I have spent a lot of time on google but no achievement please help me out I am new to flutter so I do not know how to change this…
Majid Ali
  • 107
  • 1
  • 7
6
votes
1 answer

flutter CheckedPopupMenuItem Keep menu open after selecting an item

I'm trying to get the menu stay open so i can select multiple categories at once, without snapping back to page after each selection. It would have been perfect if it would function like Excel filter data (or Libreoffice Autofilter) added…
NuoYi
  • 571
  • 2
  • 6
  • 13
4
votes
5 answers

How not to dismiss a PopUpMenuButton after selecting an item?

I am using flutter PopUpMenuButton. All i want is when i select any item on the menu, the popup should not be dismissed, rather let me select multiple values from the popup.The documentation says that you can override the handleTap property, but it…
Omi
  • 61
  • 1
  • 7
4
votes
0 answers

PopupMenuButton - how to disable animation

Is there a way to disable animation after item selected? I have route to next page with slide animation and this route starts immediately when menu item is tapped. So I have 2 parallel animations (hiding popup menu and animated route).
Maciek
  • 161
  • 3
  • 11
4
votes
1 answer

Why does PopupMenuButton dropdown overlaps statusBar?

When I set initialValue for PopupMenuButton, the dropdown overlaps statusbar. How can I avoid this? Also, How to make PopupMenuButton's dropdown position below appbar?
Figen Güngör
  • 12,169
  • 14
  • 66
  • 108
4
votes
3 answers

How to check if a phone has hardware menu button in Android 2.1?

I'm trying to figure out if an Android phone has hardware menu button, I've searched and found this method: ViewConfiguration.get(getApplicationContext()).hasPermanentMenuKey(); But this doesn't seem to work in Android 2.1, and I'm trying to create…
Robin.v
  • 719
  • 3
  • 8
  • 16
2
votes
2 answers

How to show pop-up menu when an IconButton is clicked Flutter

I am trying to show a pop-up menu appear when an IconButton() is clicked I added a PopupMenuButton() to the on pressed method of the IconButton as you can see below: but it does not show any pop-up menu when clicked. If there's anything I'm doing…
2
votes
2 answers

Flutter AppBar PopupMenuButton. Want leading Icon with Pop and right-side Icon with Popup

--> Screenshot Image <-- Using Flutter for first project after weeks of learning through tutorials and other resources. Using AppBar with Leading Icon (left) and PopupMenuButton with icon (right). The popup menu works fine however would like to have…
WillWalsh
  • 193
  • 2
  • 12
2
votes
1 answer

Flutter PopupMenuButton onLongPressed

I'm trying to show a menu context on a custom widget I created when it is long pressed(on tap has another behaviour). I tried to use GestureDetector with onLongPress and use the function showMenu but it shows the menu in the corner, not over the…
niegus
  • 1,698
  • 4
  • 22
  • 34
1
vote
0 answers

Show different String Array Toast in 3 List View Flipper

I have 3 listview on my Flipper using diffrent linear layout ListView list; ListView list1; ListView list2; and I have String Arrays that has been converted from Array list. ArrayList TextLV1 = new ArrayList(); String[] TextLv1; I…
1
vote
1 answer

Flutter PopupMenuButton from a list

In Flutter, I need to create a PopupMenu dynamically I would like to make something like List items = ['item 1','item2','item3]; PopupMenuButton( itemBuilder: (context) => items; onSelected: return items.value; ), instead…
1
vote
1 answer

Flutter bug with PopupMenuButton and TextFiend inside AlertDialog

I have an AlertDialog that contains a TextField and a PopupMenuButton. When the TextField has focus and the keyboard is open, the AlertDialog is in a "raised" position, but if I press the PopupMenuButton, the TextField get unfocus, and the…
Mental
  • 43
  • 7
1
vote
1 answer

Flutter how to dismiss showMenu when mouse exit the PopupMenuItem

i am trying to make a custom showMenu and want to dismiss the showmenu when mouse exit the PopupMenuItem. any suggesion? here is what i did so far void _showPopupMenu() async { await showMenu( constraints:…
1
2 3