MotionButton constructor

const MotionButton({
  1. Key? key,
  2. required Widget child,
  3. required VoidCallback onTap,
  4. MotionButtonEffect effect = MotionButtonEffect.scale,
  5. Color? color,
  6. double borderRadius = 12.0,
  7. EdgeInsetsGeometry padding = const EdgeInsets.symmetric(horizontal: 24.0, vertical: 14.0),
})

Implementation

const MotionButton({
  super.key,
  required this.child,
  required this.onTap,
  this.effect = MotionButtonEffect.scale,
  this.color,
  this.borderRadius = 12.0,
  this.padding = const EdgeInsets.symmetric(horizontal: 24.0, vertical: 14.0),
});