rotation_stage
0.3.0, released 2 years ago by whynotmake.it
A Flutter widget that displays a four‑sided stage to show 3D objects with swipeable rotation.
WASM-ready
What it does
It provides a four‑sided stage where each side can host a widget, simulating a simple 3D object. Users can rotate the stage by swiping the bottom bar, and developers can customize content via a builder callback.
AI-written summary of version 0.3.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need a lightweight way to showcase four perspectives of an object.
- You want built‑in swipe navigation without implementing custom gestures.
Skip it when
- You require full 3D rendering or more than four sides.
- You need high‑performance graphics or physics‑based motion.
Strengths
- Easy to integrate with a single widget.
- Customizable content for each side.
- Built‑in swipe handling for rotation.
Weaknesses
- Limited to four sides, not a full 3D engine.
- Breaking changes between minor versions may require code updates.
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 0
Widget build(BuildContext context) {
return RotationStage(
contentBuilder: (int index, RotationStageSide side, double currentPage) =>
Card(
child: Padding(
padding: const EdgeInsets.all(8.0),
child: Text(side.map(front: "Front", left: "Left", back: "Back", right: "Right")),
),
),
);
}Works with
Packages commonly used together with rotation_stage: ones it builds on, ones built on it, and its own family.