v1.0.5
flutter_scale_tap
Scale and opacity animated Button for Flutter
27Likes 81230-day downloads120Pub points
AndroidiOSWebmacOSWindowsLinux
Scale/Opacity animated button
English project snapshot. Visit GitHub for the latest content.
Scale and opacity animated Button for Flutter
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);
}
Dependency list 2 items
{"sdk":"flutter"}{"sdk":"flutter"}Start with your use case, compare repository activity, and check the original project before adopting it.
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗