NeumorphismButton constructor

const NeumorphismButton({
  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 = Neumorphism.DEFAULT_DURATION,
  9. Curve curve = Neumorphism.DEFAULT_CURVE,
  10. NeumorphismButtonClickListener? onPressed,
  11. double minDistance = 0,
  12. NeumorphismStyle? style,
  13. bool provideHapticFeedback = true,
})

Implementation

const NeumorphismButton({
  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 = Neumorphism.DEFAULT_DURATION,
  this.curve = Neumorphism.DEFAULT_CURVE,
  //this.accent,
  this.onPressed,
  this.minDistance = 0,
  this.style,
  this.provideHapticFeedback = true,
}) : super(key: key);