ShrinkWrappingViewport constructor
- Key? key,
- AxisDirection axisDirection = AxisDirection.down,
- AxisDirection? crossAxisDirection,
- required ViewportOffset offset,
- SliverPaintOrder paintOrder = SliverPaintOrder.firstIsTop,
- Clip clipBehavior = Clip.hardEdge,
- List<
Widget> slivers = const <Widget>[],
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.
Implementation
const ShrinkWrappingViewport({
super.key,
this.axisDirection = AxisDirection.down,
this.crossAxisDirection,
required this.offset,
this.paintOrder = SliverPaintOrder.firstIsTop,
this.clipBehavior = Clip.hardEdge,
List<Widget> slivers = const <Widget>[],
}) : super(children: slivers);