Add opposing arc swap animation for chat quick switch
This commit is contained in:
@@ -85,6 +85,14 @@ QuickSwitchPose quickSwitchPose(
|
||||
case QuickSwitchAnimation.tape:
|
||||
case QuickSwitchAnimation.swap:
|
||||
return const QuickSwitchPose();
|
||||
case QuickSwitchAnimation.arcSwap:
|
||||
// Vertical travel is the same as Swap. This half-sine bows both paths
|
||||
// outwards, meeting their exact endpoints without a hinge or 3D filter.
|
||||
return QuickSwitchPose(
|
||||
translation: Offset(direction * .38 * wave, 0),
|
||||
rotationZ: direction * .035 * wave,
|
||||
shadow: .4 * wave,
|
||||
);
|
||||
case QuickSwitchAnimation.cardStack:
|
||||
return QuickSwitchPose(
|
||||
translation: Offset(
|
||||
|
||||
Reference in New Issue
Block a user