espresso3389 / flutter_pdf_render

A Flutter package, which renders PDF pages.
https://pub.dev/packages/pdf_render
MIT License
108 stars 70 forks source link

[Flutter Web] zoom out issue #114

Open zogol opened 1 year ago

zogol commented 1 year ago

It is not possible to zoom out completely when the pdf is wider than high

zogol commented 1 year ago

i was just able to fix this by adding boundaryMargin: const EdgeInsets.all(double.infinity),

Unfortunately now the pdfview can be dragged out of the screen

sharabiddin commented 1 year ago
onInteractionEnd: (ScaleEndDetails details) {
                    if (controller.zoomRatio <= 1.2) {
                      controller.setZoomRatio(zoomRatio: pow(1, -1000) as double);
                    }
                  }

this workaround helped me