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