flutter_touch_scale 1.3.0
flutter_touch_scale: ^1.3.0 copied to clipboard
This Flutter package delivers clear visual feedback through scale animations on user touch interactions.
1.0.2 #
- Added
TouchScaleCallPhaseenumeration to define the phase in which a touch scale callback is triggered.onAccepted: Sets the phase when the gesture is accepted, regardless of whether the animation starts.onScaleDownEnd: Sets the phase when the scale-down animation has completed.onScaleUpEnd: Sets the phase when the scale-up animation has completed.
1.1.0 #
-
Added
TouchScaleBehaviorto allow applying additional visual effects alongside the touch scaling interaction, such as opacity or shadow changes. -
Modified
reverseDurationfrom 300ms to 250ms to create a more natural scale-up animation.
1.1.1 #
- Modified the default hit test behavior from
deferToChildtoopaqueinTouchScaleGestureDetector.
1.2.0 #
-
Modifyed the default
previewDurationfrom 25ms to 50ms. -
Added
TouchScaleResolverclass to provide customizable touch-based scaling for widgets. -
Added
DrivenTouchScaleBehaviorclass that wraps child widgets withRepaintBoundaryto improve rendering performance.
1.2.2 #
- Fixed an issue about the dependency.
1.2.3 #
- Fixed an issue where removeListener was called after disposal, causing the effect not to apply.
1.3.0 #
- Added
DrivenTouchScaleResolver.stevens()constructor for perceptually balanced touch scaling based on Stevens' Power Law Stevens scaling provides consistent visual feedback across different widget sizes. (smaller widgets get stronger effects, larger widgets get subtle effects)