Skip to content

Commit 559e1ff

Browse files
committed
Update main.dart
1 parent 47928b2 commit 559e1ff

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

example/lib/main.dart

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,13 @@ class AnimatedCell extends StatelessWidget {
4646
key: key,
4747
autoPlay: autoPlay,
4848
curve: curve,
49-
onTransitionEnd: (){
49+
onAnimationEnd: (){
5050
Future.delayed(Duration(milliseconds: 200),(){
5151
if(autoPlay == false)key.currentState.reset();
5252
});
5353
},
54+
iterationCount: 1,
55+
direction: AnimatedDirection.normal,
5456
child: Container(
5557
margin: const EdgeInsets.symmetric(vertical: 8, horizontal: 15),
5658
padding: const EdgeInsets.symmetric(vertical: 8, horizontal: 15),

0 commit comments

Comments
 (0)