dough library

Classes

BasicDoughTransformer
Transforms Dough.child widgets such that they stretch from their origin towards the target with resistance pulling the widget back towards its origin.
Dough
Squishes the provided child widget based on the provided controller widget in a dough-like fashion.
DoughController
Controls a Dough widget. Use this to control when a Dough widget should squish around.
DoughRecipe
Inherited settings for Dough widgets. Use this to override the default Dough settings.
DoughRecipeData
Settings which will be applied to the Dough widget at runtime.
DoughTransformations
A utility for common dough transformations.
DoughTransformer
The strategy for how to transform the Dough.child widget. Override this class to create your own dough-like squish effects. You can apply your custom DoughTransformer strategy using the Dough.transformer property.
DoughTransformerContext
A context passed to a DoughTransformer. This will contain a context to inform the DoughTransformer on how to transform a widget.
DraggableDough<T extends Object>
A widget which mimics the behavior of Flutter's Draggable widget, only this one is squishy! For details on what each field does for this widget, view Flutter's docs for the Draggable widget.
DraggableDoughPrefs
Preferences applied to DraggableDough widgets.
DraggableOverlayDoughTransformer
Transforms Dough.child widgets such that they stretch towards their target with adhesion applied. Additionally this transformer allows you to apply offset to the child widget while being dragged to give the illusion that the draggable widget is "resisting" being dragged until DoughController.stop is called.
PressableDough
A smooshable dough widget that morphs into different shapes based on how the user presses on it.
PressableDoughReleaseDetails
Details for a PressableDoughReleaseCallback.

Enums

DoughStatus
Represents the state of a Dough widget's animation based on its associated DoughController.

Typedefs

DoughStatusCallback = void Function(DoughStatus status)
A callback used to indicate a change in DoughStatus.
PressableDoughReleaseCallback = void Function(PressableDoughReleaseDetails details)
Raised when a user releases their hold on a PressableDough widget.