最佳答案
您可以使用showModalBottomSheet小部件。这是此小部件的简单用法:
showModalBottomSheet(
context: context,
builder: (BuildContext bc){
return Container(
child: new Wrap(
children: <Widget>[
new ListTile(
leading: new Icon(Icons.music_note),
title: new Text('Music'),
onTap: () => {}
),
new ListTile(
leading: new Icon(Icons.videocam),
title: new Text('Video'),
onTap: () => {},
),
],
),
);
}
);
关于flutter - 如何使小部件来自下面并将其自身堆叠在当前屏幕的顶部?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/62763727/