puck 0.1.0
puck: ^0.1.0 copied to clipboard
Floating, draggable pucks that spring to the left or right screen edge.
0.1.0 #
Nov 16, 2026 #
- Give root pucks a small press expansion and playful spring release.
- Animate root pucks in and out with a playful scale overshoot; use
PuckMenu.visibleto animate menu visibility while retaining its position. - Add
ArcStyleto customize menu arc colors and thickness. - Add optional menu IDs to automatically save and restore docked positions across navigation and app restarts.
- Add multi-level menus with staggered opening and closing animations and adaptive arcs that can expand into full circles.
- Add
PuckMenuControllerfor external control and lifecycle callbacks for expansion, collapse, dragging, release, and docking. - Fix abrupt arc flips, radius jumps, and unstable level spacing while dragging or docking near boundaries.
- Breaking: Replace
PuckOverlaywith self-containedPuckMenu.singleLevelandPuckMenu.multiLevellayers, usingrootPuckandpuckItems. Move geometry and diagnostic options intoPuckMenuLayoutandPuckMenuDebug, and remove the root tap and long-press callbacks.
0.0.2 #
- Add optional red anchor dots and a main-puck long-press callback; long-press the example puck to toggle the dots.
- Balance visible circle-edge gaps against screen boundaries instead of center angles.
- Add menu items that spring out from beneath the main puck and collapse on a second tap.
- Retarget menu springs as the main puck moves, preserving velocity during interruptions.
- Adapt the visible menu arc near screen edges and corners.
- Add configurable menu radius and item diameter, with an interactive example.
0.0.1 #
- Introduce
PuckOverlayfor floating, draggable circular widgets. - Add spring docking to the nearest left or right edge, with 10% of the puck offscreen by default.
- Preserve fling momentum with vertical friction and top/bottom collision boundaries.
- Support custom puck content, tap callbacks, diameter, initial placement, and offscreen fraction.
- Include an Android and iOS example app.
- License the package under the MIT license.