Flutter வசமான, நমनీய animation support கொண்டுள்ளது — எளிய implicit animations முதல் முழுவதும் கட்டுப்படுத்தப்பட்ட explicit animations வரை. Animations smooth transitions மற்றும் motion மூலம் UX ஐ மேம்படுத்துகிறது, மற்றும் Flutter இன் widget-based system அவற்றை அணுகக்கூடியதாக்குகிறது।
Implicit animations (எளிய வழி)
// 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 (, , முதலியவை) அவற்றின் properties மாறும்போது தானாகவே animate ஆகிறது — animation சேர்ப்பதற்கான எளிய வழி।
