springDescription property

SpringDescription? springDescription
final

Custom spring physics for the pill morph animation.

When null, uses the built-in iOS 26-style spring (stiffness 350, damping 30). Override to create slower, faster, or more/less bouncy transitions:

springDescription: const SpringDescription(
  mass: 1, stiffness: 200, damping: 40, // slower, minimal overshoot
),

Implementation

final SpringDescription? springDescription;