page_flip_builder
0.1.4, released 3 years ago by codewithandrea.com
Interactive page-flip widget for Flutter with drag, fling, and programmatic control
What it does
PageFlipBuilder lets you flip between two widgets using drag gestures or code. It supports vertical or horizontal axes, customizable tilt, scale, and duration. The widget works on all platforms and handles unbounded sizes.
AI-written summary of version 0.1.4, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need a page-turn effect for a book or card UI
- You want a full-screen transition between two screens
- You need a lightweight, no‑dependency widget for custom animations
Skip it when
- You need a complex 3D page-turn with shadows or physics beyond basic tilt
- You require a library that integrates with state management or navigation
Strengths
- Zero dependencies, only flutter
- Supports all platforms (web, mobile, desktop)
- Fully null‑safe and up‑to‑date with Dart 3
- Customizable axis, tilt, scale, duration
Weaknesses
- Limited to two sides (front/back)
- No built‑in support for multi‑page stacks
- No advanced physics or shadow effects
- Not a full page‑turn engine like TurnPage
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 0
Add dependency in pubspec and import package. No special permissions or build_runner needed.
```dart
PageFlipBuilder(
frontBuilder: (_) => LightHomePage(),
backBuilder: (_) => DarkHomePage(),
flipAxis: Axis.horizontal,
onFlipComplete: (isFront) => print('isFront: $isFront'),
)
```Alternatives
Packages that do the same job and could replace page_flip_builder.
- dismissible_page
Widget that lets you dismiss a page in any direction with custom gestures
89Compare - ultimate_carousel
A single carousel widget with 54 built-in transitions and 15 animated page indicators.
65Compare - tab_overview
Tab switcher with live thumbnails in a grid, zoom transitions, and drag-and-drop reordering.
73Compare - stac_framework
Enables easy creation of custom parsers for widgets and actions in server-driven UI implementations.
72Compare