Flutter এ শক্তিশালী, নমনীয় অ্যানিমেশন সাপোর্ট রয়েছে — সাধারণ implicit অ্যানিমেশন থেকে সম্পূর্ণ-নিয়ন্ত্রিত explicit অ্যানিমেশন পর্যন্ত। অ্যানিমেশন মসৃণ ট্রানজিশন এবং গতির মাধ্যমে UX বাড়ায়, এবং Flutter এর widget-ভিত্তিক সিস্টেম সেগুলিকে সহজবোধ্য করে তোলে।
Implicit অ্যানিমেশন (সহজ উপায়)
// 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 অ্যানিমেশন (, , ইত্যাদি) স্বয়ংক্রিয়ভাবে অ্যানিমেট করে যখন তাদের বৈশিষ্ট্য পরিবর্তিত হয় — অ্যানিমেশন যোগ করার সবচেয়ে সহজ উপায়।
