Closed chriswg3 closed 3 months ago
Could you explain me more about your problem?
I think the behavior is fine even with single page landscale PDF:
You can see the problem if you try it on android and zoom in and out...
Could you explain more? I'm not sure what's your problem.
Actually, I've found an issue on PdfPageAnchor behavior and fixed it. But it has nothing to do with bounderyMargin:
Oh, I see.
0.4.44 fixes the issue; PdfViewerParams.boundaryMargin is working again and the new default is EdgeInsets.all(double.infinity)
.
By the way, I could not remember why I've removed boundaryMargin
parameter from the code.
You are using the parameter on several other places, are you sure that everything is ok then? Maybe you removed the parameter because of another bug?
I think boundaryMargin should be there anyway. I had been just dropped mistakenly in some recent version.
When i display a PDF in landscape the InteractiveViewer does not allow to zoom to the minimum. I think this is becaus the bounderyMargin setting of the InteractiveViewer.
if I set it to:
iv.InteractiveViewer( transformationController: _txController, constrained: false, boundaryMargin: const EdgeInsets.all(double.infinity),
the zoom in / out works like it should.
Would be fine to have an option to set this parameter from outside.