flutter_touch_scale 1.1.1+1 copy "flutter_touch_scale: ^1.1.1+1" to clipboard
flutter_touch_scale: ^1.1.1+1 copied to clipboard

This Flutter package delivers clear visual feedback through scale animations on user touch interactions.

Introduction #

This Flutter package delivers clear visual feedback through scale animations on user touch interactions.

See Also, If you want the change-log by version for this package. refer to Change Log for details.

Preview #

The gif image below may appear distorted and choppy due to compression.

preview

Usage #

The following explains the basic usage of this package.

TouchScale(
  onPress: () => print("Hello, World!"),
  child: ... // <- this your widget
)

How to define the style globally. #

TouchScaleStyle defines the style of its descendant touch scale widgets, similar to how PrimaryScrollController defines the controller for its descendant widgets.

TouchScaleStyle(
  scale: 1.1,
  child: ...
)

The Properties of TouchScaleCallPhase #

The enumeration that defines the phase in which a touch scale callback is triggered.

Name Description
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
likes
160
points
310
downloads

Publisher

verified publisherttangkong.dev

Weekly Downloads

This Flutter package delivers clear visual feedback through scale animations on user touch interactions.

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

flutter

More

Packages that depend on flutter_touch_scale