NeumorphicButton constructor

const NeumorphicButton({
  1. Key? key,
  2. Widget? child,
  3. required EdgeInsetsGeometry padding,
  4. required Color backgroundColor,
  5. required VoidCallback onTap,
  6. Color? brightShadowColor,
  7. Color? darkShadowColor,
  8. double? height,
  9. double? width,
  10. double borderRadius = 0,
  11. bool shouldClip = true,
  12. Alignment lightSource = Alignment.topLeft,
  13. double shadowBlurRadius = 2.0,
  14. double shadowOffsetMultiplier = 2.0,
})

Implementation

const NeumorphicButton({
  super.key,
  this.child,
  required this.padding,
  required this.backgroundColor,
  required this.onTap,
  this.brightShadowColor,
  this.darkShadowColor,
  this.height,
  this.width,
  this.borderRadius = 0,
  this.shouldClip = true,
  this.lightSource = Alignment.topLeft,
  this.shadowBlurRadius = 2.0,
  this.shadowOffsetMultiplier = 2.0,
});