public _RenderSliverPersistentHeaderForWidgetsMixinOnRenderSliverPersistentHeaderRenderSliverFloatingPinnedPersistentHeader( RenderBox child = null, FloatingHeaderSnapConfiguration snapConfiguration = null, OverScrollHeaderStretchConfiguration stretchConfiguration = null ) : base(child: child, snapConfiguration: snapConfiguration, stretchConfiguration: stretchConfiguration) { }
public _SliverAppBarDelegate( Widget leading, bool automaticallyImplyLeading, Widget title, List <Widget> actions, Widget flexibleSpace, PreferredSizeWidget bottom, float?elevation, bool forceElevated, Color backgroundColor, Brightness?brightness, IconThemeData iconTheme, IconThemeData actionsIconTheme, TextTheme textTheme, bool primary, bool?centerTitle, float titleSpacing, float?expandedHeight, float?collapsedHeight, float?topPadding, bool floating, bool pinned, FloatingHeaderSnapConfiguration snapConfiguration, OverScrollHeaderStretchConfiguration stretchConfiguration, ShapeBorder shape ) { D.assert(primary || topPadding == 0.0); this.leading = leading; this.automaticallyImplyLeading = automaticallyImplyLeading; this.title = title; this.actions = actions; this.flexibleSpace = flexibleSpace; this.bottom = bottom; this.elevation = elevation; this.forceElevated = forceElevated; this.backgroundColor = backgroundColor; this.brightness = brightness; this.iconTheme = iconTheme; this.actionsIconTheme = actionsIconTheme; this.textTheme = textTheme; this.primary = primary; this.centerTitle = centerTitle; this.titleSpacing = titleSpacing; this.expandedHeight = expandedHeight; this.collapsedHeight = collapsedHeight; this.topPadding = topPadding; this.floating = floating; this.pinned = pinned; this.snapConfiguration = snapConfiguration; _bottomHeight = bottom?.preferredSize?.height ?? 0.0f; this.snapConfiguration = snapConfiguration; this.stretchConfiguration = stretchConfiguration; }
void _updateSnapConfiguration() { if (this.widget.snap && this.widget.floating) { this._snapConfiguration = new FloatingHeaderSnapConfiguration( vsync: this, curve: Curves.easeOut, duration: new TimeSpan(0, 0, 0, 0, 200) ); } else { this._snapConfiguration = null; } }