v1.4.0animated_switcher_plus
AnimatedSwitcher를 위한 사전 구축된 전환 효과 예: 플립, 줌 및 이동
58좋아요 77830일 다운로드160Pub 점수
AndroidiOSWebmacOSWindowsLinux
AnimatedSwitcher를 위한 사전 빌드된 전환 효과 [Flutter]
{"sdk":"flutter"}{"sdk":"flutter"}^2.0.1아래는 영문 원문 스냅샷입니다. 최신 내용은 GitHub에서 확인하세요.
Prebuilt transitions for Animated Switcher such as flip, zoom and translation.
AnimatedSwitcherPlus.flipX(
duration: const Duration(milliseconds: 1500),
child: _showFirstChild ?
const Text('Primary Text', key: ValueKey(0)) :
const Text('Secondary Text', key: ValueKey(1)),
);
Note: If you are using the same type of widget, change the child key to notify the AnimatedSwitcher that the child has changed. Otherwise, the transition will not occur