首页 > TAG信息列表 > bottomHeight

flutter 常见组件的特殊用法 —— AppBar

AppBar 的高度与 PreferredSizeWidget 通常可以观察到 Scaffold.appBar 与 AppBar.bottom 属性,要求其值必须是 PreferredSizeWidget(典型的是 AppBar 与 TabBar 组件)。 abstract class PreferredSizeWidget implements Widget { Size get preferredSize; } ① 那么 AppBar 是怎