PdfViewerGetPageRenderingScale typedef
PdfViewerGetPageRenderingScale =
double Function(BuildContext context, PdfPage page, PdfViewerController controller, double estimatedScale)
Function to customize the rendering scale of the page.
contextis normally used to call MediaQuery.of to get the device pixel ratiopagecan be used to determine the page dimensionscontrollercan be used to get the current zoom by PdfViewerController.currentZoomestimatedScaleis the precalculated scale for the page
Implementation
typedef PdfViewerGetPageRenderingScale =
double Function(BuildContext context, PdfPage page, PdfViewerController controller, double estimatedScale);