real_page_flip library

Classes

DefaultPageFlipEffectHandler
PageFlipConfig
Configuration for PageFlipWidget behavior and styling.
PageFlipController
Controller for programmatic page navigation on a PageFlipWidget.
PageFlipEffectHandler
Interface for handling effects triggered by the PageFlip engine. This allows the core engine to remain generic and dependency-free, while allowing for sophisticated haptic and audio implementations.
PageFlipWidget
A high-fidelity, physics-based page flip widget for Flutter.
PageFlipWidgetState
State class for PageFlipWidget that manages animation and effects.
PaperHapticOutputProfile
Device-facing output envelope for one paper texture level.
PaperPhysicsConfig
Configuration for paper physics simulation parameters.
PaperPhysicsEngine
Façade that orchestrates all paper physics components.
PaperPhysicsFrame
A single frame of output from the paper physics engine.
PaperTextureConfig
Concrete haptic parameters derived from a PaperTexturePreset.
PerceptualHapticGain
Maps absolute haptic amplitudes onto a more consistent perceived scale.

Enums

DevicePerformanceProfile
Represents the performance tier of the device to adjust rendering quality.
HapticQuality
Requested haptic fidelity. adaptive selects the best safe native path.
HapticStrength
User-facing perceived intensity preference for page-flip haptics.
PageFlipEvent
Events that can be triggered by the page flip engine for haptic/sound effects.
PageFlipSnapshotRefreshPolicy
Controls when the current page snapshot is refreshed before a flip.
PageFlipSpreadMode
How PageFlipWidget maps pages to the viewport.
PaperTexturePreset
Intuitive paper texture presets for the haptic engine.

Functions

clipSpreadPageHalf({required Widget child, required Alignment alignment}) → Widget
Clips child to the left or right half when child lives in a half-width slot (e.g. Expanded in a Row) and must be expanded to full spread width before clipping — typical host itemBuilder layouts.