Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR DART

flutter popupmenubutton

PopupMenuButton(
  child: Center(child: Text('click here')),
  itemBuilder: (context) {
    return List.generate(5, (index) {
      return PopupMenuItem(
        child: Text('button no $index'),
      );
    });
  },
),
Source by medium.flutterdevs.com #
 
PREVIOUS NEXT
Tagged: #flutter #popupmenubutton
ADD COMMENT
Topic
Name
6+2 =