NeumorphicButton constructor
const
NeumorphicButton({
- Key? key,
- Widget? child,
- required EdgeInsetsGeometry padding,
- required Color backgroundColor,
- required VoidCallback onTap,
- Color? brightShadowColor,
- Color? darkShadowColor,
- double? height,
- double? width,
- double borderRadius = 0,
- bool shouldClip = true,
- Alignment lightSource = Alignment.topLeft,
- double shadowBlurRadius = 2.0,
- 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,
});