bounce_tap 1.0.0 copy "bounce_tap: ^1.0.0" to clipboard
bounce_tap: ^1.0.0 copied to clipboard

retractedoutdated

A great and efficacious flutter package to add an on-tap bounce animation on any flutter widget

  • A great flutter and efficacious package for an on-tap bounce animation on any flutter widget

Usage #

To use this package, add bounce_tap as a dependency in your pubspec.yaml file.

Demo #

[]

Example #

  • Import the library
import 'package:bounce_tap/bounce_tap.dart';
  • In order to use this package, we just need to wrap the content with the widget BounceTap.
  • Only child,onTap are mandatory in the widget.
  • tapIntensity is used to define how much the widget should scale down when pressed
  • Stronger is tapIntensity, lower will the widget scale.
  • tapIntensity,onTap and duration can have null in the widget. By default duration is set to 200 ms.
BounceTap(
  duration: Duration(milliseconds: 150),
  onPressed: (){ YOUR_FUNCTION },
  child: YOUR_WIDGET,
  tapIntensity: TapIntensity.mid
)

Documentation #

BounceTap properties #

Name Type Default Description
child Widget required child widget
onTap VoidCallback required onTap event handler
tapIntensity TapIntensity TapIntensity.mid Set the intensity of the tap
duration Duration Duration(milliseconds:200) Set the text style of your carousel
onLongPressed VoidCallback null onLongPress event handler
tapDelay int 200 how long the widget should wait before calling the onTap/onLongPress events handlers

Now enjoy!

Refer to example folder and the source code for more information.

Acknowledgement #

  • I would like to thank Mohsin for the indirect motivation for his widget, to come up with an efficient work around, which will now be useful for our flutter community people
10
likes
0
points
27
downloads

Publisher

verified publisherethieladiassa.me

Weekly Downloads

A great and efficacious flutter package to add an on-tap bounce animation on any flutter widget

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on bounce_tap