EmergentButton constructor

const EmergentButton({
  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 = Emergent.defaultDuration,
  9. Curve curve = Emergent.defaultCurve,
  10. EmergentButtonClickListener? onPressed,
  11. double minDistance = 0,
  12. EmergentStyle? style,
  13. 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);