stretch property
The factor to multiply the drag offset by to determine the stretch amount.
Controls how much the button stretches in response to drag gestures:
- 0.0 means no stretch
- 1.0 means the stretch matches the drag offset exactly (usually too much)
- 0.5 (default) provides a balanced, natural stretch effect
Higher values create more dramatic squash and stretch animations.
Defaults to 0.5.
Implementation
final double stretch;