Double tap (click) to zoom in PdfViewer
Closed this issue · 2 comments
90tamal90 commented
How to able to make the double click to zoom the pdf view ....???
espresso3389 commented
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),
),
),
],
90tamal90 commented
Thank You Sir .....🙏