flutter_plugin_pdf_viewer icon indicating copy to clipboard operation
flutter_plugin_pdf_viewer copied to clipboard

Error if the pdf one page

Open iMaz1n opened this issue 6 years ago • 4 comments

when tap on picker button get this error, the pdf file has one page only Screen Shot 2019-08-04 at 4 07 24 PM

iMaz1n avatar Aug 04 '19 15:08 iMaz1n

Same problem here with an Android Emulator.

flutter_plugin_pdf_viewer: ^1.0.7

polilluminato avatar Aug 23 '19 11:08 polilluminato

Same here. I'm using

showPicker: (_doc.count??0) > 1,

as a workaround.

magnus-lpa avatar Aug 23 '19 11:08 magnus-lpa

on viewer.dart, I use

floatingActionButton: (widget.showPicker && widget.document.count > 1)

work for me

rambmario avatar Aug 27 '19 02:08 rambmario

If you know in advance that your app will always show one page Pdf's only then you can set showPicker to false in your code to hide the picker.

PDFViewer(
    document: pdfDoc,
    showPicker: false,
)

gegobyte avatar Mar 11 '20 16:03 gegobyte