getItem method
Implementation
Widget getItem(int i){
if(i==keyArray.length-1){
return new GestureDetector(
onTap: (){
if(controller.status==AnimationStatus.completed){
direction=1;
controller.reverse();
}else{
direction=0;
controller.forward();
}
},
child:Transform.rotate(
angle: getAngle(),
child: children[i],),
);
}else{
return children[i];
}
}