📜  Flutter 弹出菜单按钮示例教程 - Dart 代码示例

📅  最后修改于: 2022-03-11 14:48:02.234000             🧑  作者: Mango

代码示例1
PopupMenuButton(
        itemBuilder: (BuildContext context) => [
          const PopupMenuItem(
            child: Text('Option1'),
          ),
          const PopupMenuItem(
            child: Text('Option2'),
          ),
          const PopupMenuItem(
            child: Text('Option3'),
          ),