CrossPT / flutter_plugin_pdf_viewer

A flutter plugin for handling PDF files. Works on both Android & iOS
BSD 3-Clause "New" or "Revised" License
92 stars 317 forks source link

Viewer V2 #63

Closed lohanidamodar closed 3 years ago

lohanidamodar commented 4 years ago

Hi, I have extended the current viewer and added few functionalities. For that I have created new widget PDFViewerV2, where

  1. I use PageView to enable swipe gestures to view previous-next pages.
  2. I load the pages only when requested by the user (first only page one is loaded and when user navigates, other pages are loaded as required.)
  3. Already loaded pages are saved in the list, so does not require loading everytime
  4. Disable navigation buttons when _pageNumber is 1 (disable previous and first page button), when _pageNumber equals widget.document.count (disable next and last page button)