Flutter之系统提示性组件

添加如下代码就可以实现系统提示性组建

RaisedButton(
  onPressed: (){
    Scaffold.of(context).showBottomSheet(
            (BuildContext context) {
          return new Container(
            height: 100,
            child: Text('bottomsheet出现了'),
          );
        },

        backgroundColor:Colors.blue,
        elevation: 10,
        shape: RoundedRectangleBorder(),
        clipBehavior: Clip.antiAlias

    );


  },
  child: Text('点击显示BottomSheet'),

),
发布了368 篇原创文章 · 获赞 22 · 访问量 20万+

猜你喜欢

转载自blog.csdn.net/BianHuanShiZhe/article/details/104772966
今日推荐