buildViewport abstract method

Widget buildViewport(
  1. BuildContext context,
  2. ViewportOffset verticalOffset,
  3. ViewportOffset horizontalOffset
)

Build the two dimensional viewport.

Subclasses may override this method to change how the viewport is built, likely a subclass of TwoDimensionalViewport.

The verticalOffset and horizontalOffset arguments are the values obtained from TwoDimensionalScrollable.viewportBuilder.

Implementation

Widget buildViewport(
  BuildContext context,
  ViewportOffset verticalOffset,
  ViewportOffset horizontalOffset,
);