EmergentButton constructor
const
EmergentButton({
- Key? key,
- EdgeInsets? padding,
- EdgeInsets? margin = EdgeInsets.zero,
- Widget? child,
- String? tooltip,
- bool drawSurfaceAboveChild = true,
- bool? pressed,
- Duration duration = Emergent.defaultDuration,
- Curve curve = Emergent.defaultCurve,
- EmergentButtonClickListener? onPressed,
- double minDistance = 0,
- EmergentStyle? style,
- bool provideHapticFeedback = true,
Implementation
const EmergentButton({
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 = Emergent.defaultDuration,
this.curve = Emergent.defaultCurve,
//this.accent,
this.onPressed,
this.minDistance = 0,
this.style,
this.provideHapticFeedback = true,
}) : super(key: key);