toPdfWidget method
Converts the GridView to a pw.GridView
.
Implementation
pw.GridView toPdfWidget(
List<pw.Widget> children, BoxConstraints constraints) =>
pw.GridView(
crossAxisCount: gridDelegate.toPdfCrossAxisCount(constraints),
crossAxisSpacing: gridDelegate.toPdfCrossAxisSpacing(),
mainAxisSpacing: gridDelegate.toPdfMainAxisSpacing(),
childAspectRatio: gridDelegate.toPdfChildAspectRatio(),
padding:
(padding as EdgeInsets?)?.toPdfEdgeInsets() ?? pw.EdgeInsets.zero,
direction: scrollDirection.toPdfAxis(),
children: children,
);