Skip to main content

magic_cube 1.0.1 copy "magic_cube: ^1.0.1" to clipboard
magic_cube: ^1.0.1 copied to clipboard

A pure Flutter 3D Rubik's cube widget with draggable layer turns, free whole-cube rotation, standard notation moves, scrambling and undo.

1.0.1 #

  • ๐Ÿ“ Docs: improved the documentation.

1.0.0 #

  • ๐Ÿ‘† Gestures โ€” drag a sticker to turn its layer (axis auto-detected, snaps to the nearest 90ยฐ); drag outside the cube to orbit with inertia, or use two fingers to orbit while the in-progress turn smoothly rolls back.
  • ๐ŸŒ Free viewpoint โ€” full 360ยฐ flips with no gimbal lock; view animations always take the shortest path.
  • ๐Ÿ”ค Notation & NxN โ€” standard U D L R F B M E S x y z with ' / 2, numeric layer prefixes (e.g. 3X') for odd cubes up to 11ร—11; parse / notation round-trip and throw FormatException on malformed tokens.
  • ๐Ÿง  State & controller โ€” scramble, undo, step-by-step restore, solved detection, solved-face count, bounded history and queued animations; taskEpoch marks the state generation, and one controller is safe to share across widgets.
  • ๐ŸŽจ Appearance โ€” four hot-swappable themes, two-level corner rounding with patches, raised stickers with side walls and shadows, view-space lighting, and a fully validated CubeTheme.
  • ๐Ÿ–ผ๏ธ Centre-piece logo โ€” an ui.Image on one centre sticker that follows the cubie's perspective and lighting; helpers rasterise text, icons or the Flutter logo into square transparent images.
  • ๐Ÿ“ Pixel-quality rendering โ€” adaptive arc tessellation (โ‰ค0.12 px), hairline anti-aliasing on side walls, stencil-free on Web, plus near-plane / degenerate-homography guards.
  • โšก Performance โ€” static layers cached as Pictures, theme/signature-keyed caches for geometry, shading and outlines, pooled temporaries, and unified cache disposal on last unmount (~69% less per-frame work at 400ร—400 on a 3ร—3).
  • ๐Ÿงช Quality โ€” regression tests for notation, state math, controller lifecycle, layer sorting, corner patches, logo perspective and anti-aliasing; CI runs format / analyze / tests for the package and example.
2
likes
160
points
0
downloads
screenshot

Documentation

API reference

Publisher

verified publishernoob-coder.com

Weekly Downloads

A pure Flutter 3D Rubik's cube widget with draggable layer turns, free whole-cube rotation, standard notation moves, scrambling and undo.

Homepage
Repository (GitHub)
View/report issues

Topics

#magic-cube #rubiks-cube #cube-3d #puzzle #widget

License

MIT (license)

Dependencies

flutter

More

Packages that depend on magic_cube