dough
2.0.0, released 3 years ago by josiahsaunders.com
Provides squishy UI widgets for Flutter
What it does
The package offers widgets that give a smooshy, elastic feel to UI elements, such as pressable and draggable dough widgets. It also allows custom recipes to tweak the physics of the effect.
AI-written summary of version 2.0.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- You want a playful, elastic interaction for buttons or cards
- You need reusable pressable or draggable widgets with a custom feel
Skip it when
- You need complex physics simulations beyond simple squish
- You are building a production app that requires strict performance guarantees
Strengths
- Easy to use out of the box
- Customizable physics via DoughRecipe
- Supports multiple platforms
Weaknesses
- Limited to squishy interactions only
- No built‑in support for advanced gestures like long‑press drag
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 3
Add dependency, import package, no build_runner needed
PressableDough(child: FloatingActionButton(onPressed: () {}, child: Icon(Icons.add))),Alternatives
Packages that do the same job and could replace dough.
- nocterm
Framework for building terminal user interfaces with Flutter‑like components and hot reload.
79Compare - flutter_layout_grid
A grid layout system for Flutter inspired by CSS Grid Layout.
68Compare - flutter_tutorial_overlay
Create interactive tutorials and onboarding flows with widget highlights and tooltips.
66Compare - step_progress
Customizable step progress indicators for multi-step tasks in Flutter UI.
52Compare
Works with
Packages commonly used together with dough: ones it builds on, ones built on it, and its own family.
- vector_mathdough depends on itVector math library for 2D/3D/4D vectors, matrices, quaternions, and geometry.
- equatabledough depends on itProvides value‑based equality for Dart objects without manual == and hashCode.
- providerdough depends on itA lightweight wrapper around InheritedWidget for state management