Flutter布局-appbar
appbar组件的常用属性
| 属性名 | 说明 |
|---|---|
| leading | 在标题前面显示一个控件,在首页通常显示应用的logo;在其他界面显示为返回按钮 |
| title | 标题 |
| actions | 通常使用iconButton来表示,可以放按钮组 |
| bottom | 通常放tabbar,标题下面实现tab导航栏 |
| backgroundColor | 导航背景颜色 |
| iconTheme | 图标样式 |
| textTheme | 文字样式 |
| centerTitle | 标题是否居中显示 |
dart
1 | Scaffold( |
自定义appBar定义顶部Tab切换
dart
1 | DefaultTabController( |

