book_page_flip 0.1.0
book_page_flip: ^0.1.0 copied to clipboard
A smooth, efficient open-book page-turn widget. Drag or animate pages with a realistic 3D page curl, a soft shadow, and a natural-feeling turn.
0.1.0 #
- Initial release.
BookFlipwidget with drag-to-turn 3D page flip over a single packed texture.BookFlip.builderandBookFlip.widgets: build pages from ANY widgets (text, images, whole layouts), captured and disposed for you — noui.Imagelifecycle to manage.pageLabel: stamp a custom page number (or any widget) onto every page, baked into the page at no per-frame cost.BookFlipCurl: direct control of the page-curve trajectory —bend,foldTiltanddroop— independent of the paper, withcopyWithandlerp.BookFlipEffects: turn each visual layer (gloss, grain, cast shadow, spine shadow, edge line, translucency) on or off individually.BookFitandpageAspectRatio: fits any layout (fixed, flex, scrollable) and keeps the pages' true shape — no distortion, never throws under any constraints.maxTextureDimensionandmeshResolutionfor device tuning. The atlas adapts to the GPU's real texture limit (retrying smaller if rejected), and mesh smoothness can be raised for large or high-density screens.BookFlipControllerfor programmatic turns by spread (nextSpread,previousSpread,goToSpread) or by page (goToPage), and for observingcurrentSpread,currentPage,totalSpreads,totalPages,flipProgressandisAnimating.BookFlipPhysicsfor tuning the spring and commit behavior.BookFlipMaterialfor the paper's feel — stiffness, weight, gloss, translucency and edge thickness — with two ready-made papers (paper, the matte default, and glossymagazine), pluslerpandcopyWith.onSpreadChanged/onFlipStart/onFlipEndcallbacks.