1
0
mirror of https://github.com/flutter/samples.git synced 2025-11-08 22:09:06 +00:00

Add shared analysis_options.yaml to animation samples (#145)

This commit is contained in:
Thea Flowers
2019-09-27 14:36:38 -07:00
committed by GitHub
parent 22ca7f462b
commit e3338726c6
6 changed files with 85 additions and 6 deletions

View File

@@ -176,7 +176,7 @@ class _SwipeableCardState extends State<SwipeableCard>
var description = SpringDescription(mass: 50, stiffness: 1, damping: 1);
var simulation =
SpringSimulation(description, _controller.value, 1, velocity);
_controller.animateWith(simulation).then((_) {
_controller.animateWith(simulation).then<void>((_) {
widget.onSwiped();
});
}