page_flip_view 0.5.2
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 #
PdfFlipBookgainsenableTapToFlip(defaulttrue), forwarded toPageFlipView. Set it tofalseso taps near the page edges reachonCenterTapinstead 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 withspreadand 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: 0no longer builds a hidden copy of the turning page.
0.4.1 #
- New reading filters that keep colours:
PdfFlipBook.dim(75 % brightness) andPdfFlipBook.sepia(warm cream tone). - Matching paper colours for every filter:
dimPaper,sepiaPaper,nightPaper, so the back of a turning page matches the pages. - Docs:
paperColoris the paper, not the screen background;nightModeinverts 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), andPdfFlipBook(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.
coverAlonekeeps the first page on its own, like a book cover.- Zoom in spread mode re-renders both visible PDF pages sharp.
PageFlipView.shouldSpreadhelper andPageSpreadModeenum.- README: demo GIFs for spread, zoom and night mode.
0.3.0 #
PdfFlipBook.network(uri, headers:, timeout:)downloads and opens a PDF.- Breaking:
loadingBuildernow receives the download progress:(context, progress);progressis 0 to 1, or null when unknown. - The default loading indicator fills up while a network PDF downloads.
- Source fields of
PdfFlipBookare 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.colorFilterandPdfFlipBook.nightModefor 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, andPageFlipController.PdfFlipBook.file,.asset,.data,.document: PDF books rendered with pdfrx, with a fast preview per page and prefetching of nearby pages.
