Questions tagged [popupmenubutton]
41 questions
1
vote
2 answers
Flutter - PopupMenuButton - add an item manually after adding items from a list
I have a PopupMenuButton which displays items from a List.
List subjects = [
Subject(
name: 'English',
iconFile: 'english.jpg',
),
Subject(
name: 'Mathematics',
iconFile: 'maths.jpg',
),
Subject(
name:…

thampister
- 19
- 4
1
vote
1 answer
dropdownbutton inside popupmenubutton works but wont show updated selected value (flutter)
When placing a DropdownButton inside of a PopupMenuButton the dropdown still works but the newly selected value isn't reflected in the DropdownButton's header.
Way to recreate:
flutter create -t skeleton test_app
Test: By clicking on the settings…

Dan1ell
- 355
- 1
- 4
- 15
1
vote
0 answers
Flutter: Dismissible in PopupMenuButton does not risize while displayed
I want to use a Dismissible Widget in a PopupMenuButton to delete items in the popup list.
My example code (see the example main() code below) works for deleting an item (String) in the PopupMenuButton, but the list is not refreshed and resized…

Jean G
- 147
- 1
- 10
1
vote
1 answer
Flutter dropdown with scroll controller?
Trying to find a dropdown example with scroll controller. What I'm trying to achieve is to load more data when it reach the end of the dropdown, I tried DropdownButton and PopupMenuButton, both no luck as it didn't have a scroll controller…

RINDAMAN
- 33
- 3
1
vote
1 answer
In a ListTitle PopupMenuButton works in debug but not in release mode in flutter
It's working when I keep it in AppBar. But in ListTile it's not working.
It's working in debug build not working in release build. May I know what's the issue exactly..
In my case when I add PopupMenuButton the button itself not showing in release…

Sunisha Guptan
- 1,555
- 17
- 44
1
vote
2 answers
Force Flutter PopupMenuButton to repaint when locale (language is changed)
Does anybody know how do I get the list of CheckedPopupMenuItems to repaint (they obviously represent the list with options PopupMenuButton shows when pressed) when the list opened and visible at the very moment when I choose to change the…

hicnar
- 163
- 3
- 9
1
vote
3 answers
Action bar menu option button element id is NULL - How to set it?
Screenshot:
I am trying to use the element ID in appium to automate click menu button. It is not set by default and it shows NULL without element ID or Text it is not possible. Could anyone help me in this?

Dennis S
- 11
- 2
1
vote
1 answer
CMFCMenuButton does not close
I have a CDialog with a CFMCMenuButton. when I open it, everything appears normally:
The problem happens when I click somewhere else to close the menu. The menu seems unclosable, unless user selects an option of it. And if I press Escape on the…

sergiol
- 4,122
- 4
- 47
- 81
1
vote
1 answer
How to add icons to a PopUpMenuButton in Flex 3 using an XML file
I've been looking at the following example for populating a PupUpMenuButton http://blog.flexexamples.com/2008/02/21/creating-a-custom-label-function-on-a-flex-popupmenubutton-control/ and would like to add icons to each menu. Ideally, I would…

davbryn
- 7,156
- 2
- 24
- 47
0
votes
0 answers
How can I dynamically update the content of a PopupMenuButton in Flutter based on loading state?
How to dynamically update the menu content of the PopupMenuButton (flutter)?
I'm using flutter PopUpMenuButton from material library and I'm trying to To dynamically change the content of the PopUpMenuButton based on the loading state of mylist.
E.g…

Jelena
- 1
0
votes
0 answers
How to access onPressed method of (Flutter/Dart) PopupMenuButton?
The PopupMenuButton icon that I'm using is not large enough to receive all taps. I want to use a separate GestureDetector overtop (using a Stack). To do this I create a GlobalKey() and give that key to the PopupMenuButton. Then I can call the…

Isaac Westenra
- 13
- 5
0
votes
1 answer
how to simplify dinamically this PopupMenuButton arrangement in Flutter?
I'm creating a PopupMenuButton in the AppBar() widget. Retrieving the elements in the List, dinamically,to make a PopupMenuButton.
final List entries = ['Choose a…

Jean
- 65
- 6
0
votes
1 answer
Programmatic Skinning of Flex PopUpButton
I am trying to programmatically skin a PopUpButton control in Flex Builder, but having no luck. As far as I know this requires writing a custom skin class or creating a modified version the control class itself (since the control is MX and not…

user883210
- 94
- 2
- 10
0
votes
0 answers
Create List of PopupMenuItems from firebase data
I have 3 cars docs in the Cars collection in my firebase cloudstore. I want to create a list of PopupMenuItems in my PopupMenuButon based on the number of cars in my Cars Collection. I also want the value of my PopupMenuItems to be the names of the…
0
votes
1 answer
Trying to use a nested set of PopupMenuButtons in a flutter app
Trying to use a set of nested PopupMenuButtons in a flutter app. The first menu opens as expected. The second menu opens only after tapping many times, closing the first menu, re-opening it, i.e. random behavior. Same is true for the third menu.…

HWK
- 362
- 2
- 6