Skip to main content

page_flip_view 0.5.2 copy "page_flip_view: ^0.5.2" to clipboard
page_flip_view: ^0.5.2 copied to clipboard

Turn pages like a real book. A diagonal corner curl that follows the finger, for any widgets and for PDF files (rendered with pdfrx).

0.5.2 #

  • PdfFlipBook gains enableTapToFlip (default true), forwarded to PageFlipView. Set it to false so taps near the page edges reach onCenterTap instead of turning the page; dragging still turns pages.

0.5.1 #

  • A swipe, edge tap or controller.next() / previous() while a turn is still finishing now completes that turn at once and starts the next one, so quick repeated flicks turn several pages instead of being ignored.

0.5.0 #

  • Right-to-left books: PageFlipView(reverse: true) turns pages from left to right with the spine on the right, for Arabic, Hebrew or manga. Page content is not mirrored; works with spread and zoom.
  • Smoother turns with heavy pages: the pages next to the current one stay built offstage, and pages keep their state when a turn moves them around, so a turn starts without building pages and they are not rebuilt on every frame while the curl follows the finger.
  • backsideOpacity: 0 no longer builds a hidden copy of the turning page.

0.4.1 #

  • New reading filters that keep colours: PdfFlipBook.dim (75 % brightness) and PdfFlipBook.sepia (warm cream tone).
  • Matching paper colours for every filter: dimPaper, sepiaPaper, nightPaper, so the back of a turning page matches the pages.
  • Docs: paperColor is the paper, not the screen background; nightMode inverts covers and pictures and is meant for text-only books. README has a reading modes table and a comparison image.
  • Example: reading mode switch (normal, dim, sepia, night).

0.4.0 #

  • Two-page spread like an open book: PageFlipView(spread: true), and PdfFlipBook(spreadMode: PageSpreadMode.auto | single | double). Auto uses two pages on landscape phones, tablets and foldables opened sideways, and one page on upright phones and upright unfolded foldables.
  • The back of a turning sheet in spread mode shows the real next page.
  • Layout switches live when the device rotates, folds or unfolds, keeping the page; a turn in progress is cancelled cleanly.
  • coverAlone keeps the first page on its own, like a book cover.
  • Zoom in spread mode re-renders both visible PDF pages sharp.
  • PageFlipView.shouldSpread helper and PageSpreadMode enum.
  • README: demo GIFs for spread, zoom and night mode.

0.3.0 #

  • PdfFlipBook.network(uri, headers:, timeout:) downloads and opens a PDF.
  • Breaking: loadingBuilder now receives the download progress: (context, progress); progress is 0 to 1, or null when unknown.
  • The default loading indicator fills up while a network PDF downloads.
  • Source fields of PdfFlipBook are private.
  • README: getting started steps and platform setup; example app has asset, network and widget tabs.

0.2.0 #

  • Pinch and double tap zoom (enableZoom, maxScale, doubleTapScale, onZoomChanged); one finger pans while zoomed and turning pauses.
  • PDF pages are re-rendered at the zoom level so text stays sharp.
  • PdfFlipBook.colorFilter and PdfFlipBook.nightMode for night reading.
  • Edge taps turn pages immediately; a middle tap waits for a possible double tap before calling onCenterTap.

0.1.0 #

  • PageFlipView: book-style pager with a diagonal corner curl that follows the finger, edge taps, fling, and PageFlipController.
  • PdfFlipBook.file, .asset, .data, .document: PDF books rendered with pdfrx, with a fast preview per page and prefetching of nearby pages.
1
likes
150
points
685
downloads
screenshot

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Turn pages like a real book. A diagonal corner curl that follows the finger, for any widgets and for PDF files (rendered with pdfrx).

Repository (GitHub)
View/report issues

Topics

#page-flip #page-curl #book #pdf #flipbook

License

MIT (license)

Dependencies

flutter, pdfrx

More

Packages that depend on page_flip_view