getGeometryForChildIndex method
The size and position of the child with the given index.
Implementation
@override
SliverGridGeometry getGeometryForChildIndex(int index) {
if (index == this.itemCount - 1) {
return SliverGridGeometry(
scrollOffset: (index ~/ this.crossAxisCount) * this.mainAxisStride,
crossAxisOffset: 0.0,
mainAxisExtent: this.childMainAxisExtent,
crossAxisExtent: this.fullCrossAccessExtent);
}
return super.getGeometryForChildIndex(index);
}