关闭的方法:向下滑动即可关闭。

onPressed: (){
           Scaffold.of(context).showBottomSheet((BuildContext context){
             return Row(
               mainAxisAlignment: MainAxisAlignment.spaceAround,
               children: <Widget>[
               IconButton(icon: Icon(Icons.shop_two), onPressed: (){

               }),
               IconButton(icon: Icon(Icons.shop_two), onPressed: (){

               })
             ],);
           });
       }),

showModalBottomSheet(
    context: context,
    builder: (BuildContext context){
      return new Column(
        mainAxisSize: MainAxisSize.min,
        children: <Widget>[
          new ListTile(
            leading: new Icon(Icons.video_library),
            title: new Text("视频"),
            onTap: () async {
              Navigator.pop(context);
            },
          ),
          new ListTile(
            leading: new Icon(Icons.photo_library),
            title: new Text("图片"),
            onTap: _selectImagesss
          ),
        ],
      );
    }
);
12-07 04:38