puck 0.1.0
puck: ^0.1.0 copied to clipboard
Floating, draggable pucks that spring to the left or right screen edge.

Puck
A Floating Menu for Flutter
A Menu Where You Need It! #
- Anchor to the left or right edge of the screen.
- Drag around your obstacles.
- Expand your menu when needed.
- Menu layout optimizes for available space.
- Menu avoids the keyboard when up, and moves back when down.
- Use a menu for quick theme checks, layout debugging, etc.
Get Started #
Place a PuckMenu above your app content. You can use a Stack to layer it on top.
import 'package:puck/puck.dart';
Stack(
children: [
yourPageContent,
Positioned.fill(
child: SafeArea(
child: PuckMenu.singleLevel(
rootPuck: yourMenuButton,
puckItems: [searchButton, favoritesButton, shareButton],
),
),
),
],
)