Scaffold 是承载material design 控件的布局控件,可以展示drawers、snack bars、bottom sheets
属性 | 说明 |
---|---|
appBar | 显示在Scaffold 顶部 |
body | 位置如下图 |
floatingActionButton | 默认右下角的悬浮按钮 |
floatingActionButtonLocation | 悬浮按钮位置,默认右下角 |
floatingActionButtonAnimator | 悬浮按钮位置位置变换动画 |
persistentFooterButtons | 位置如下图 |
bottomNavigationBar | 位置如下图 |
bottomSheet | 位置如下图 |
效果图
抽屉效果图: