MotionMorphingButton constructor

const MotionMorphingButton({
  1. Key? key,
  2. required Widget child,
  3. required Future<void> onTap(),
  4. Color? color,
  5. double borderRadius = 12.0,
  6. double width = 180.0,
  7. double height = 50.0,
  8. Duration duration = const Duration(milliseconds: 350),
})

Implementation

const MotionMorphingButton({
  super.key,
  required this.child,
  required this.onTap,
  this.color,
  this.borderRadius = 12.0,
  this.width = 180.0,
  this.height = 50.0,
  this.duration = const Duration(milliseconds: 350),
});