MotionButton constructor
const
MotionButton({
- Key? key,
- required Widget child,
- required VoidCallback onTap,
- MotionButtonEffect effect = MotionButtonEffect.scale,
- Color? color,
- double borderRadius = 12.0,
- 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),
});