https://github.com/mttankkeo/flutter_touch_scale
This Flutter package delivers clear visual feedback through scale animations on user touch interactions.
https://github.com/mttankkeo/flutter_touch_scale
flutter touch-feedback
Last synced: about 2 months ago
JSON representation
This Flutter package delivers clear visual feedback through scale animations on user touch interactions.
- Host: GitHub
- URL: https://github.com/mttankkeo/flutter_touch_scale
- Owner: MTtankkeo
- License: bsd-3-clause
- Created: 2025-06-09T09:39:31.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-08-16T19:11:23.000Z (10 months ago)
- Last Synced: 2026-03-27T02:52:25.226Z (3 months ago)
- Topics: flutter, touch-feedback
- Language: Dart
- Homepage: https://pub.dev/packages/flutter_touch_scale
- Size: 32.2 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# 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](CHANGELOG.md) for details.
## Preview
The gif image below may appear distorted and choppy due to compression.

## Usage
The following explains the basic usage of this package.
```dart
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.
```dart
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. |