NeumorphicButton constructor

NeumorphicButton({
  1. Key? key,
  2. EdgeInsets? padding,
  3. EdgeInsets? margin = EdgeInsets.zero,
  4. Widget? child,
  5. String? tooltip,
  6. bool drawSurfaceAboveChild = true,
  7. bool? pressed,
  8. Duration duration = Neumorphic.DEFAULT_DURATION,
  9. Curve curve = Neumorphic.DEFAULT_CURVE,
  10. NeumorphicButtonClickListener? onPressed,
  11. double minDistance = 0,
  12. NeumorphicStyle? style,
  13. 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);