espresso3389/pdfrx

Double tap (click) to zoom in PdfViewer

Closed this issue · 2 comments

How to able to make the double click to zoom the pdf view ....???

I'm not sure what's the best but the following code realizes what you want easily:

viewerOverlayBuilder: (context, size) => [
  GestureDetector(
    behavior: HitTestBehavior.translucent,
    onDoubleTap: () {
      controller.zoomUp(loop: true);
    },
    child: IgnorePointer(
      child:
          SizedBox(width: size.width, height: size.height),
    ),
  ),
],

Thank You Sir .....🙏