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.
DoughState
The state of a Dough widget which manages an animation controller to gracefully transform a widget over time.
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.
DraggableDoughRecipe
Inherited settings for DraggableDough widgets. Use this to override the default DraggableDough settings.
DraggableDoughRecipeData
Preferences applied to DraggableDough widgets.
DraggableDoughState<T extends Object>
The state of a DraggableDough widget which controls how the Dough morphs as the feedback is dragged around.
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.
PressableDoughState
The state of a PressableDough widget which updates a Dough widget based on user input.

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.