v2.0.0
animated
Flutter용 매우 간단하지만 강력한 암시적 애니메이션 라이브러리입니다.
31좋아요 8.6천30일 다운로드130Pub 점수
AndroidiOSWebmacOSWindowsLinux
Flutter용 매우 간단하지만 강력한 암시적 애니메이션 라이브러리입니다.
아래는 영문 원문 스냅샷입니다. 최신 내용은 GitHub에서 확인하세요.
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.
의존성 목록 2 개
{"sdk":"flutter"}{"sdk":"flutter"}사용 목적에 따라 검색하고 개발 활동을 비교한 뒤 원본 저장소에서 요구 사항을 확인하세요.
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗