DEV Community

Cover image for Flutter Flip Card Animation With 3D Effect

Flutter Flip Card Animation With 3D Effect

Mighty on January 04, 2020

Implementing Card Flip Animation In Flutter will not be hard as you think because of the Widgets and Classes provided by Flutter. Start ...
Collapse
 
chitgoks profile image
chitgoks

Do you have one for horizontal?

Collapse
 
ngaretou profile image
ngaretou

Try changing this line:
..rotateX(pi * _animation.value),
to:
..rotateY(pi * _animation.value),

Collapse
 
manudevcode profile image
Manuel Alejandro

_TypeError (type 'int' is not a subtype of type 'double') on rotateX params

Collapse
 
ngaretou profile image
ngaretou • Edited

I had the same problem! Eventually tracked it down - change the fourth line down in the complete code:
Animation _animation;
to:
Animation<double> _animation;
That should do it.

It seems like markdown strips out the angle brackets and what's in them - something there I think must be the problem.

Collapse
 
legendree profile image
Legendree • Edited

Tween in your initState()