FLUTTER ECOSYSTEM

Vardiak/Animated

Flutter के लिए बहुत सरल (लेकिन शक्तिशाली) अप्रत्यक्ष एनीमेशन लाइब्रेरी।

एनिमेटेड प्रोजेक्ट कवर
Stars
26
Forks
3
अंतिम पुश (UTC)
3 जुल॰ 2022
प्रोजेक्ट स्थिति
सक्रिय
Nathan Cabasso GitHub avatar
GITHUB User

Nathan Cabasso ↗

Software engineer

JitterParis
भाषाएँDart

इस रिपॉज़िटरी के पैकेज

उपयोग की गई निर्भरताएँ

निर्भरता सूची 2 आइटम
  • flutter{"sdk":"flutter"}
  • flutter_testडेवलपमेंट{"sdk":"flutter"}

मूल README

यह अंग्रेज़ी मूल स्नैपशॉट है। नवीनतम सामग्री GitHub पर देखें।

README खोलें / बंद करें

Animated

Animated is a very simple (yet powerful) implicit animation library made for Flutter.

Its goal is to be able to create a smooth animation between two values when an AnimatedContainer is not enough.

@override
Widget build(BuildContext context) {
  return Animated(
    value: 1.2,
    curve: Curves.easeInOut,
    duration: Duration(milliseconds: 300),
    builder: (context, child, animation) => Transform.scale(
      scale: animation.value,
      child: child,
    ),
    child: Container(
      width: 40,
      height: 40,
      color: Colors.red,
    ),
  );
}

In this example, whenever the value changes, the builder function will be called at each frame, from the old value to the new one.

Any widget that is not modified by the animation should be moved to the child property for optimization.