espresso3389/flutter_pdf_render

[Flutter Web] zoom out issue

Opened this issue · 2 comments

zogol commented

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

zogol commented

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

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

this workaround helped me