pdf library

PDF books with the page curl of PageFlipView, rendered with pdfrx.

Classes

PageFlipController
Drives a PageFlipView from outside: turn pages with an animation, jump without one, and listen for the current page.
PageFlipView
A book-like pager: pages turn with a diagonal corner curl that follows the finger, like a printed magazine.
PdfFlipBook
A PDF shown as a book with the corner-curl page turn of PageFlipView.

Enums

PageSpreadMode
How pages are laid out: one at a time, or two side by side like an open book.

Typedefs

PdfDocumentErrorBuilder = Widget Function(BuildContext context, Object error, VoidCallback retry)
Builds what is shown when the document could not be opened.
PdfLoadingBuilder = Widget Function(BuildContext context, double? progress)
Builds what is shown while the document opens. progress goes from 0 to 1 while a PdfFlipBook.network file downloads, and is null when the size is unknown or the source is local.
PdfPageErrorBuilder = Widget Function(BuildContext context, int pageIndex, VoidCallback retry)
Builds what a page shows when rendering it failed.
PdfPagePlaceholderBuilder = Widget Function(BuildContext context, int pageIndex)
Builds what a page shows while its image is not rendered yet.