I want to do Horizontal flip animation for CircularAvatar widget.. like below animation
Like this i want to flip circularAvartar
I have tried
AnimationController _controller;
AnimatedBuilder(
animation: _controller,
builder: (context, child){
return Transform(
transform: Matrix4.rotationY((1 - _controller.value ) * pi / 2),
child: CircleAvatar(
radius: PROFILE_PIC_RADIUS,
backgroundImage: AssetImage(url),
// backgroundColor: Colors.transparent,
),
);
}
),
_controller.forward();
_controller.reverse();
But it is not working like below animation, i want animation like flipping coin in horizontal direction.. Please give any solution