Skip to content
pubscout

dough

2.0.0, released 3 years ago by josiahsaunders.com

Provides squishy UI widgets for Flutter

WASM-ready
$ flutter pub add dough
Source repository

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.

Works with

Packages commonly used together with dough: ones it builds on, ones built on it, and its own family.