Flutter基础widgets教程-Drawer篇

a9f75dba72dcc26afec12459fad0885a.png

1 Drawer

从Scaffold边缘水平滑动以显示应用程序中导航链接的Material Design面板。

2 构造函数 

Drawer({
    Key key,
    this.elevation = 16.0,
    this.child,
    this.semanticLabel,
})

3 常用属性 

3.1 elevation:墨纸设计中组件的z坐标顺序

elevation:16.0,

3.2 child:子控件

child:Text(
     'Hello Flutter'
),
posted @ 2022-05-31 18:10  青年码农  阅读(462)  评论(0编辑  收藏  举报