Support disabled animations (#20354)

This commit is contained in:
Jonah Williams
2018-08-23 11:50:04 -07:00
committed by GitHub
parent 1f31c3b354
commit e235ccd76f
15 changed files with 238 additions and 19 deletions

View File

@@ -21,6 +21,7 @@ class _ProgressIndicatorDemoState extends State<ProgressIndicatorDemo> with Sing
_controller = new AnimationController(
duration: const Duration(milliseconds: 1500),
vsync: this,
animationBehavior: AnimationBehavior.preserve,
)..forward();
_animation = new CurvedAnimation(