swift_animations 1.2.0
swift_animations: ^1.2.0 copied to clipboard
SwiftUI-like declarative animations for Flutter. Zero boilerplate - no controllers, no ticker providers required! Works on all platforms.
Changelog #
All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
1.2.0 2025-01-XX #
Added #
- Gesture extensions with
.sGestureDetector()method - Liquid tap effects with spring physics animations
- Scale animation on tap with iOS-style spring physics
- Stretch effects during drag gestures
- Long press support with configurable duration
- Auto-scaling based on widget size
- Customizable stretch and translate sensitivity
1.1.0 2025-01-XX #
Added #
- Spring physics animations support
spring()method for custom spring animations with configurable mass, stiffness, damping, and initial velocityspringIOS()method for iOS-style snappy spring animationsspringGentle()method for gentle spring animations with smooth bouncespringBouncy()method for bouncy spring animations with high bounce- Support for unbounded animation controllers for spring physics
1.0.1 2025-01-XX #
Changed #
- Updated homepage URL to https://swiftflutter.com/swiftanimation
1.0.0 2025-01-XX #
Added #
- Initial release of
swift_animationspackage - SwiftUI-like declarative animation API
- Zero boilerplate animations - no mixins required
- Support for all Flutter platforms (iOS, Android, Web, macOS, Linux, Windows)
- Transform animations: scale, scaleX, scaleY, rotate
- Opacity animations: fadeIn, fadeOut, custom opacity
- Slide animations: slideX, slideY, slideInTop, slideInBottom, slideInLeft, slideInRight
- Special effects: bounce, pulse, fadeInScale
- Animation configuration: duration, delay, curve, repeat, repeatCount, persist
- Duration shorthand support:
.500ms,0.5.s,5.m, etc. - Number extensions for duration:
500.ms,1.5.s,2.m
Features #
- Clean chaining API similar to SwiftUI
- Automatic ticker provider management (handled internally)
- No need for SingleTickerProviderStateMixin or TickerProviderStateMixin in user code
- Support for complex animation combinations
- Animation state persistence option