flutter_physics 0.2.3 copy "flutter_physics: ^0.2.3" to clipboard
flutter_physics: ^0.2.3 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.3 #

  • Fix target-based physics animations stopping just short of their requested values. All three controllers now set exact final targets before notifying listeners, respecting controller bounds and clamped physics. This removes residual borders and shadows from completed implicit animations while preserving custom animateWith simulation behavior.
  • Fix zero-duration updates in PhysicsController2D and PhysicsControllerMulti leaving an older animation running.
  • Ensure ASize recognizes a stabilized child even when the controller's final value is unchanged.

0.2.2 #

  • Fix ASwitcher retaining outgoing children and their controllers after transitions finish. Remove each outgoing child and dispose its controller when its reverse animation is dismissed, matching Flutter's AnimatedSwitcher lifecycle.

0.2.1 #

  • Fix AContainer crashing when spring overshoot produces invalid decoration values, such as negative shadow blur radii when a shadow disappears.
  • Clamp interpolation for both decoration and foregroundDecoration, 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 ATranslate widget for implicit physics-based translation animations.

0.1.0 #

  • Added animateBackWith to PhysicsController for compatibility with new AnimationController API 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.fromARGB instead of Color.from to accommodate Flutter versions before 3.27.0.

0.0.5 #

  • PhysicsController now implements the AnimationController interface, so it can (really) be used as a drop-in replacement for AnimationController.
  • 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.
63
likes
160
points
6.43k
downloads

Documentation

API reference

Publisher

verified publishersangdoan.com

Weekly Downloads

A Flutter package providing physics-based animations including customizable spring and gravity simulations that can be used both as physics simulations and animation curves.

Repository (GitHub)
View/report issues

License

MIT (license)

Dependencies

flutter

More

Packages that depend on flutter_physics