Skip to content
pubscout

bounce

1.0.2, released 3 years ago by cendre.me

A widget that applies a tap-triggered smooth scale and tilt animation to children.

WASM-readyCopyleft license
$ flutter pub add bounce
Source repository

What it does

The Bounce widget wraps a target widget to add a touch-triggered scale and rotate animation. Depending on the touch location, a tilt effect is applied, which can be customized or disabled.

AI-written summary of version 1.0.2, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You want to add tactile feedback animations to buttons or clickable widgets.
  • You need a bounce or tilt effect based on where the user taps a widget.

Skip it when

  • You need complex physics-based motion suites or timelines like Rive or Lottie.
  • Targeting Safari iOS where specific filter quality adjustments are needed manually.

Strengths

  • Simple widget wrapper API
  • Configurable tilt angle, scale factor, and tap delay
  • Supports secondary tap and long press callbacks

Weaknesses

  • Requires manual filter quality adjustment on Safari iOS due to browser limitations
  • Limited to scale and tilt bounce effects

Setup

Kind
Flutter widgets
Effort
Low
Code generation
No
Direct dependencies
0
return Bounce(
        onTap: () {
          // ...
        },
        child: ...)

Alternatives

Packages that do the same job and could replace bounce.

  • flutter_animate

    Provides a comprehensive set of general-purpose animations and effects rather than just tap-triggered bouncing.