-
Notifications
You must be signed in to change notification settings - Fork 100
Description
Describe the bug
In landscape mode,
When setting index via setPage of pdfViewController, the page jumped to is not centered.
When I slide, the page I jump to is centered.
To Reproduce
Steps to reproduce the behaviour:
- I have two buttons to control the pdf forward and backward。
- When I use pdfViewController.setPage, the pdf is not centered in window。
Expected behaviour
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Right condition:

But i get:
Smartphone (please complete the following information):
- Android sdk verion 34
Additional context
Add any other context about the problem here.
I config the window in landscape mode in inState。
void initState() {
SystemChrome.setPreferredOrientations([
DeviceOrientation.landscapeLeft,
DeviceOrientation.landscapeRight,
]);
}
Also, I config swipeHorizontal as true. And the pageSnap is ture.
PDF pdf = PDF(
fitPolicy: fitPolicy,
pageSnap: true,
swipeHorizontal: true,)
