flutter_pdf_render icon indicating copy to clipboard operation
flutter_pdf_render copied to clipboard

[Flutter Web] zoom out issue

Open zogol opened this issue 2 years ago • 2 comments

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

zogol avatar Apr 05 '23 19:04 zogol

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

zogol avatar Apr 06 '23 09:04 zogol

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

this workaround helped me

sharabiddin avatar Sep 01 '23 08:09 sharabiddin