magic_cube — 3D Rubik's Cube widget for Flutter
This page is an interactive Flutter Web demo, so it needs JavaScript.
The widget itself is a real 3D Rubik's cube drawn on a 2D canvas with
CustomPainter — no 3D engine and no native plugins:
- drag a sticker — turns that layer, snapping to 90°;
- drag outside the cube — orbits the whole cube, with inertial decay;
- standard notation
R U R' U' F2 M E S x y z can be executed programmatically;
- scramble, undo, step-by-step restore, solved detection and per-face solved counting.
Source and documentation:
github.com/runoob-coder/flutter-magic-cube