public RenderSliverGrid( RenderSliverBoxChildManager childManager, SliverGridDelegate gridDelegate ) : base(childManager: childManager) { D.assert(gridDelegate != null); this._gridDelegate = gridDelegate; }
public override bool shouldRelayout(SliverGridDelegate _oldDelegate) { SliverGridDelegateWithMaxCrossAxisExtent oldDelegate = _oldDelegate as SliverGridDelegateWithMaxCrossAxisExtent; return(oldDelegate.maxCrossAxisExtent != this.maxCrossAxisExtent || oldDelegate.mainAxisSpacing != this.mainAxisSpacing || oldDelegate.crossAxisSpacing != this.crossAxisSpacing || oldDelegate.childAspectRatio != this.childAspectRatio); }
public override bool shouldRelayout(SliverGridDelegate _oldDelegate) { SliverGridDelegateWithFixedCrossAxisCount oldDelegate = _oldDelegate as SliverGridDelegateWithFixedCrossAxisCount; return(oldDelegate.crossAxisCount != crossAxisCount || oldDelegate.mainAxisSpacing != mainAxisSpacing || oldDelegate.crossAxisSpacing != crossAxisSpacing || oldDelegate.childAspectRatio != childAspectRatio); }
public abstract bool shouldRelayout(SliverGridDelegate oldDelegate);