{"repo":"chooyan-eng/animated_to","free":true,"listed":false,"github":"https://github.com/chooyan-eng/animated_to","clone":"git clone https://github.com/chooyan-eng/animated_to.git","description":"AnimateTo animates its child to a new position requiring no calculation.","language":"Dart","stars":130,"topics":["animation","flutter"],"license":"Apache-2.0","category":"mobile-apps","readme_excerpt":"animated to animated to provides a widget named AnimatedTo which enables its child widget to change its position with animation when its position is updated for any reason, typically for rebuilding. No calculation is required. Because every calculation is RenderObject 's business in the Flutter framework, AnimatedTo just hires the calculated position and starts animation there. Usage First, place whatever widget you want to animate when its position changes. Then, wrap the widget with AnimatedTo.curve or AnimatedTo.spring passing GlobalKey . Note that GlobalKey is necessary to keep its RenderObject alive even when the widget's depth or position changes. And, that's it! All what you need to do is causing rebuilds using whatever state management packages or just setState and change its position. AnimatedTo will automatically leads the child to the new position with animation. Spring animation animated to provides AnimatedTo.spring which animates its child using SpringSimulation . https://api.flutter.dev/flutter/physics/SpringSimulation-class.html This simulates its position transition based on the physical simulation, which make the animations smooth and natural. What you have to do is just switch AnimatedTo.curve into AnimatedTo.spring to activate spring simulation. You can also configure your own SpringDescription using description argument, or you can use pre-defined configuration using @timcreatedit's motor package. https://pub.dev/packages/motor As motor is also used insid","default_branch":null,"files":null,"tree":[],"storefront":"/r/chooyan-eng","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/chooyan-eng/animated_to/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}