Skip to content
This repository has been archived by the owner on Nov 18, 2024. It is now read-only.

[Flutter Web] zoom out issue #114

Open
zogol opened this issue Apr 5, 2023 · 2 comments
Open

[Flutter Web] zoom out issue #114

zogol opened this issue Apr 5, 2023 · 2 comments
Labels
bug Something isn't working enhancement New feature or request

Comments

@zogol
Copy link

zogol commented Apr 5, 2023

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

@zogol
Copy link
Author

zogol commented Apr 6, 2023

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

@espresso3389 espresso3389 added bug Something isn't working enhancement New feature or request labels Jun 7, 2023
@sharabiddin
Copy link

sharabiddin commented Sep 1, 2023

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

this workaround helped me

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants