NeumorphicButton constructor
NeumorphicButton({
- Key? key,
- EdgeInsets? padding,
- EdgeInsets? margin = EdgeInsets.zero,
- Widget? child,
- String? tooltip,
- bool drawSurfaceAboveChild = true,
- bool? pressed,
- Duration duration = Neumorphic.DEFAULT_DURATION,
- Curve curve = Neumorphic.DEFAULT_CURVE,
- NeumorphicButtonClickListener? onPressed,
- double minDistance = 0,
- NeumorphicStyle? style,
- bool provideHapticFeedback = true,
Implementation
NeumorphicButton({
Key? key,
this.padding,
this.margin = EdgeInsets.zero,
this.child,
this.tooltip,
this.drawSurfaceAboveChild = true,
this.pressed, //true/false if you want to change the state of the button
this.duration = Neumorphic.DEFAULT_DURATION,
this.curve = Neumorphic.DEFAULT_CURVE,
//this.accent,
this.onPressed,
this.minDistance = 0,
this.style,
this.provideHapticFeedback = true,
}) : super(key: key);