2番目のウィジェットからポップアップメニューを開くにはどうすればよいですか?PopupMenuButtonを開くには?
final button = new PopupMenuButton(
itemBuilder: (_) => <PopupMenuItem<String>>[
new PopupMenuItem<String>(
child: const Text('Doge'), value: 'Doge'),
new PopupMenuItem<String>(
child: const Text('Lion'), value: 'Lion'),
],
onSelected: _doSomething);
final tile = new ListTile(title: new Text('Doge or lion?'), trailing: button);
私はtile
をタップしてbutton
のメニューを開きたいです。
ありがとうございます。これらのgithubの問題で説明されているウィジェットは、探していた。 – DogeLion