草庐IT

kPreferredBottomBarSize

全部标签

layout - 有没有办法在 SliverAppBar 的底部小部件中实现动态高度

SliverAppBar有一个属性bottom,它必须有preferredSize。现在我让它返回常量值:...newSliverAppBar(expandedHeight:_kFlexibleSpaceMaxHeight,flexibleSpace:newFlexibleSpaceBar(.....)...bottom:newBottomBar(...),//hastohavepreferredSize),...classBottomBarextendsStatelessWidgetimplementsPreferredSizeWidget{...@overrideSizegetpr

layout - 有没有办法在 SliverAppBar 的底部小部件中实现动态高度

SliverAppBar有一个属性bottom,它必须有preferredSize。现在我让它返回常量值:...newSliverAppBar(expandedHeight:_kFlexibleSpaceMaxHeight,flexibleSpace:newFlexibleSpaceBar(.....)...bottom:newBottomBar(...),//hastohavepreferredSize),...classBottomBarextendsStatelessWidgetimplementsPreferredSizeWidget{...@overrideSizegetpr