flutter_physics 0.2.2
flutter_physics: ^0.2.2 copied to clipboard
A Flutter package providing physics-based animations including customizable spring and gravity simulations that can be used both as physics simulations and animation curves.
0.2.2 #
- Fix
ASwitcherretaining outgoing children and their controllers after transitions finish. Remove each outgoing child and dispose its controller when its reverse animation is dismissed, matching Flutter'sAnimatedSwitcherlifecycle.
0.2.1 #
- Fix
AContainercrashing when spring overshoot produces invalid decoration values, such as negative shadow blur radii when a shadow disappears. - Clamp interpolation for both
decorationandforegroundDecoration, including when an animation is interrupted with a new target. Other animated properties retain their spring motion.
0.2.0 #
- BREAKING: Updated all predefined springs to be compatible with Flutter 3.32+ breaking changes to
SpringDescription. - BREAKING: Bump min Flutter version to 3.32.0 due to underdamped spring physics corrections.
- Fix: All predefined springs (swift, snap, playful, stern, float, buoyant, fling, slow, bob, boingoingoing) now use correct physics parameters to restore intended behavior after Flutter 3.32 migration.
- Migration Guide: If you use custom SpringDescription objects with mass ≠ 1 and damping ratio < 1, migrate them using the Flutter migration guide.
- New: Added
ATranslatewidget for implicit physics-based translation animations.
0.1.0 #
- Added
animateBackWithtoPhysicsControllerfor compatibility with newAnimationControllerAPI in Flutter 3.29 (master). - BREAKING: Bump min Flutter version to 3.27.0.
0.0.6+1 #
- Update
CHANGELOG.md
0.0.6 #
- Use
Color.fromARGBinstead ofColor.fromto accommodate Flutter versions before 3.27.0.
0.0.5 #
PhysicsControllernow implements theAnimationControllerinterface, so it can (really) be used as a drop-in replacement forAnimationController.- New methods added to
PhysicsController:toggle,animateTo.
0.0.4 #
- Bug fix for PhysicsControllerMulti and PhysicsBuilderMulti.
0.0.3 #
- Bug fix for ASizedBox to normalize size.
0.0.2+1 #
- Update README.md
0.0.2 #
- Added comprehensive documentation and examples
- New PhysicsController variants (2D and Multi)
- New PhysicsAnimatedWidgetBaseState for ImplicitlyPhysicsAnimatedWidget, plus support for PhysicsAnimatedProperty (non-Tween-animated)
- New ASize, ASwitcher, and AValue widgets
- New PhysicsBuilder widgets (1D, 2D, Multi)
- Bug fixes and performance improvements
0.0.1 #
- Initial release.