ShrinkWrappingViewport constructor

ShrinkWrappingViewport({Key key, AxisDirection axisDirection: AxisDirection.down, AxisDirection crossAxisDirection, @required ViewportOffset offset, List<Widget> slivers: const [] })

Creates a widget that is bigger on the inside and shrink wraps its children in the main axis.

The viewport listens to the offset, which means you do not need to rebuild this widget when the offset changes.

The offset argument must not be null.

Implementation

ShrinkWrappingViewport({
  Key key,
  this.axisDirection = AxisDirection.down,
  this.crossAxisDirection,
  @required this.offset,
  List<Widget> slivers = const <Widget>[],
}) : assert(offset != null),
     super(key: key, children: slivers);