flutter_physics library

Classes

AAlign
Physics-based equivalent of AnimatedAlign, renamed to AAlign.
AContainer
Physics-based equivalent of AnimatedContainer, renamed to AContainer.
ADefaultTextStyle
Physics-based equivalent of AnimatedDefaultTextStyle, renamed to ADefaultTextStyle.
AFractionallySizedBox
Physics-based equivalent of AnimatedFractionallySizedBox, renamed to AFractionallySizedBox.
AOpacity
Physics-based equivalent of AnimatedOpacity, renamed to AOpacity.
APadding
Physics-based equivalent of AnimatedPadding, renamed to APadding.
APhysicalModel
Physics-based equivalent of AnimatedPhysicalModel, renamed to APhysicalModel.
APositioned
Physics-based equivalent of AnimatedPositioned, renamed to APositioned. {@template a_positioned} Animates changes in position within a Stack using physics-based animations. This widget must be a direct child of a Stack.
APositionedDirectional
Physics-based equivalent of AnimatedPositionedDirectional, renamed to APositionedDirectional. Directional equivalent of APositioned.
ARotation
Physics-based equivalent of AnimatedRotation, renamed to ARotation.
AScale
Physics-based equivalent of AnimatedScale, renamed to AScale.
ASize
A widget that automatically transitions its size over a given duration whenever the given child's size changes, using either standard curves or physics-based animations.
ASizedBox
A widget that animates changes in size using physics-based animations.
ASlide
Physics-based equivalent of AnimatedSlide, renamed to ASlide.
ASliverOpacity
Physics-based equivalent of SliverAnimatedOpacity, renamed to ASliverOpacity. {@macro a_opacity}
ASwitcher
A widget that animates between two children using physics-based animations.
ATranslate
Physics-based equivalent of Transform.translate, named ATranslate.
AValue<T>
A widget that smoothly animates between different values of type T whenever the value changes, using either standard curves or physics-based animations.
ClampedPhysicsSimulation
A PhysicsSimulation that clamps the given simulation.
The physics-based version of FlutterLogo.
Friction
A physics-based animation that simulates motion with friction/drag.
Gravity
A physics-based animation that simulates gravitational acceleration.
ImplicitlyPhysicsAnimatedWidget
A base class resembling ImplicitlyAnimatedWidget driven by one or more PhysicsControllers.
PhysicsAnimatedProperty
PhysicsAnimatedWidgetBaseState<T extends ImplicitlyPhysicsAnimatedWidget>
PhysicsAnimatedWidgetState<T extends ImplicitlyPhysicsAnimatedWidget>
A base state class that uses a PhysicsController instead of an AnimationController. Subclassing this does not automatically rebuild on each tick. To rebuild on each tick, use PhysicsAnimatedWidgetBaseState.
PhysicsBuilder
A purely physics-based equivalent of AValue.double that simplifies the physics-based animation of a single double value.
PhysicsBuilder2D
A widget that smoothly animates between different 2D positions using physics-based animations, represented as Offset values.
PhysicsBuilder2DState
PhysicsBuilderMulti
A widget that smoothly animates between different N-dimensional positions using physics-based animations.
PhysicsBuilderMultiState
PhysicsBuilderState
PhysicsController
A controller for physics-based animations that supports both standard curves and physics simulations.
PhysicsController2D
A controller for 2D physics-based animations that supports both standard curves and physics simulations.
PhysicsControllerMulti
A controller for multi-dimensional physics-based animations that supports both standard curves and physics simulations.
PhysicsSimulation
A base class for all physics simulations that also implement the Curve interface.
RenderASize
Simulation2D
A wrapper class that combines two simulations to create 2D motion.
Spring
A physics-based animation that simulates spring motion.

Enums

RenderAnimatedSizeState
Directly copied from RenderAnimatedSize.

Typedefs

Denormalize<T> = T Function(List<double>)
Normalize<T> = List<double> Function(T)
Physics = Curve
A type alias for the Curve interface to make it clear that users can pass in any Flutter's native Curve or PhysicsSimulation to the PhysicsController.
PhysicsAnimationConstructor = PhysicsAnimatedProperty Function(double value)
Signature of a function that creates a new PhysicsAnimatedProperty given the initial value and bounds. Physics-based analog of TweenConstructor.
PhysicsPropertyVisitor = PhysicsAnimatedProperty? Function(PhysicsAnimatedProperty? oldProperty, double? targetValue, PhysicsAnimationConstructor constructor)
Signature for a "property visitor" that, given an old PhysicsAnimatedProperty and a new target, returns a new or updated PhysicsAnimatedProperty. Analog of Flutter's TweenVisitor.
PhysicsTweenVisitor<T extends Object> = Tween<T>? Function(Tween<T>? tween, T targetValue, TweenConstructor<T> constructor)
Signature for a "property visitor" that, given an old tween and a new target, returns a new or updated tween. Adapted from Flutter's TweenVisitor.
TweenConstructor<T extends Object> = Tween<T> Function(T value)
Signature for a factory function that creates a new Tween<T> given the initial value.