PopupMenuButton( child: Center(child: Text('click here')), itemBuilder: (context) { return List.generate(5, (index) { return PopupMenuItem( child: Text('button no $index'), ); }); }, ),