Advertisement
Guest User

Untitled

a guest
Dec 7th, 2018
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. Padding createPopupMenu() {
  2. return Padding(
  3. padding: const EdgeInsets.only(left: 16),
  4. child: PopupMenuButton<String>(
  5. child: Icon(Icons.menu),
  6. itemBuilder: (BuildContext context) {
  7. return StringsConst.popupItems.map((String item) {
  8. return PopupMenuItem<String>(
  9. value: item,
  10. child: Text(
  11. item,
  12. style: new TextStyle(
  13. color: Colors.white,
  14. ),
  15. ),
  16. );
  17. }).toList();
  18. },
  19. ),
  20. );
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement