NeumorphismButton constructor
const
NeumorphismButton({
- Key? key,
- EdgeInsets? padding,
- EdgeInsets? margin = EdgeInsets.zero,
- Widget? child,
- String? tooltip,
- bool drawSurfaceAboveChild = true,
- bool? pressed,
- Duration duration = Neumorphism.DEFAULT_DURATION,
- Curve curve = Neumorphism.DEFAULT_CURVE,
- NeumorphismButtonClickListener? onPressed,
- double minDistance = 0,
- NeumorphismStyle? style,
- 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);