interactionScale property

double interactionScale
final

The scale factor to apply when the user is interacting with the button.

  • 1.0 means no scaling
  • Greater than 1.0 means the button will grow (e.g., 1.05 = 5% larger)
  • Less than 1.0 means the button will shrink

This creates a satisfying "press down" effect when the button is touched.

Defaults to 1.05.

Implementation

final double interactionScale;