animated_visibility
使用 AnimatedVisibility 实现出现和消失的动画
Flutter - 使用 AnimatedVisibility 小部件通过预构建效果来动画显示和隐藏。
以下为英文项目原文快照,最新内容请访问 GitHub。
Animate appearance and disappearance using pre-built effects with the AnimatedVisibility widget.

In the pubspec.yaml of your flutter project, add the following dependency:
dependencies:
animated_visibility: <latest_version>
In your library add the following import:
import 'package:animated_visibility/animated_visibility.dart';
AnimatedVisibility(
visible: _isShow,
enter: fadeIn() + scaleIn(),
exit: fadeOut() + slideOutHorizontally(),
child: <content to show/hide>,
);
Sample app demonstrates how simple the usage of the library actually is.
For bugs, questions and discussions please use the Github Issues.
animated_visibility is owned and maintained by the Canopas team. You can follow them on X at @canopassoftware for project updates and releases.
依赖清单 3 项
{"sdk":"flutter"}{"sdk":"flutter"}^2.0.0先按使用场景筛选,再比较项目活跃情况,最后到原始仓库核对使用要求。
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗