예제 #1
0
 public RenderSliverGrid(
     RenderSliverBoxChildManager childManager,
     SliverGridDelegate gridDelegate
     ) : base(childManager: childManager)
 {
     D.assert(gridDelegate != null);
     this._gridDelegate = gridDelegate;
 }
예제 #2
0
        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);
        }
예제 #3
0
        public override bool shouldRelayout(SliverGridDelegate _oldDelegate)
        {
            SliverGridDelegateWithFixedCrossAxisCount oldDelegate =
                _oldDelegate as SliverGridDelegateWithFixedCrossAxisCount;

            return(oldDelegate.crossAxisCount != crossAxisCount ||
                   oldDelegate.mainAxisSpacing != mainAxisSpacing ||
                   oldDelegate.crossAxisSpacing != crossAxisSpacing ||
                   oldDelegate.childAspectRatio != childAspectRatio);
        }
예제 #4
0
 public abstract bool shouldRelayout(SliverGridDelegate oldDelegate);