flutter_scale_tap 1.0.5 copy "flutter_scale_tap: ^1.0.5" to clipboard
flutter_scale_tap: ^1.0.5 copied to clipboard

Scale and opacity animated Button for Flutter

ScaleTap #

Scale and opacity animated Button for Flutter

Getting Started #

Wrap your widget with ScaleTap

ScaleTap(
  onPressed: (){
    //Tap
  },
  onLongPress: (){
    //Long press
  },
  child: Container(
    child: Text("Tap Me"),
  ),
)

You can change the default behaviour with the ScaleTapConfig class

class ScaleTapConfig {
  static double scaleMinValue = 0.95;
  static Curve scaleCurve = CurveSpring();
  static double opacityMinValue = 0.90;
  static Curve opacityCurve = Curves.ease;
  static Duration scaleOpacityAnimationDuration = const Duration(milliseconds: 300);
  static Duration buttonAnimationDuration = const Duration(milliseconds: 300);
}
28
likes
100
pub points
87%
popularity

Publisher

unverified uploader

Scale and opacity animated Button for Flutter

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

flutter

More

Packages that depend on flutter_scale_tap