Exemple #1
0
 public _RenderSliverPersistentHeaderForWidgetsMixinOnRenderSliverPersistentHeaderRenderSliverScrollingPersistentHeader(
     RenderBox child = null,
     OverScrollHeaderStretchConfiguration stretchConfiguration = null
     ) : base(child: child,
              stretchConfiguration: stretchConfiguration)
 {
 }
Exemple #2
0
 public _RenderSliverPinnedPersistentHeaderForWidgets(
     RenderBox child = null,
     OverScrollHeaderStretchConfiguration stretchConfiguration = null
     ) : base(
         child: child,
         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;
 }
Exemple #4
0
 public _RenderSliverFloatingPersistentHeaderForWidgets(
     RenderBox child = null,
     FloatingHeaderSnapConfiguration snapConfiguration         = null,
     OverScrollHeaderStretchConfiguration stretchConfiguration = null
     ) : base(
         child: child,
         snapConfiguration: snapConfiguration,
         stretchConfiguration: stretchConfiguration
         )
 {
 }
 void _updateStretchConfiguration()
 {
     if (widget.stretch)
     {
         _stretchConfiguration = new OverScrollHeaderStretchConfiguration(
             stretchTriggerOffset: widget.stretchTriggerOffset,
             onStretchTrigger: widget.onStretchTrigger
             );
     }
     else
     {
         _stretchConfiguration = null;
     }
 }