Flutter yana da karfi, flexible animation support — daga sauƙaƙƙen implicit animations zuwa cikin Full-controlled explicit animations. Animations suna haɓaka UX tare da smooth transitions da motion, kuma Flutter's widget-based system yana sa su sauƙi.
Implicit animations (hanyar sauki)
// implicitly-animated widgets animate AUTOMATICALLY when their properties change
AnimatedContainer(
duration: Duration(milliseconds: 300),
width: _expanded ? 200 : 100, // change width → it animates smoothly
height: _expanded ? 200 : 100,
color: _expanded ? Colors.blue : Colors.red,
)
// just change the value (with setState) → Flutter animates the transition
// others: AnimatedOpacity, AnimatedPadding, AnimatedPositioned, etc.
Implicit animations (, , da sauransu) suna animate ta atomatik lokacin da properties nasu suka canja — hanyar sauƙi ta fara amfani da animation.
