SFButton constructor

const SFButton({
  1. Key? key,
  2. required void onPressed()?,
  3. Color? backgroundColor,
  4. Color? textColor,
  5. Color? outlineColor,
  6. Color? disabledTextColor,
  7. Color? disabledbackgroundColor,
  8. double? width,
  9. double? height,
  10. double outlineWidth = 1.0,
  11. double outlineRadius = 10,
  12. TextStyle? hoverTextStyle,
  13. Color? hoverbackgroundColor,
  14. SFButtonStatus status = SFButtonStatus.primary,
  15. bool isAsChild = false,
  16. required Widget? child,
})

Implementation

const SFButton({
  super.key,
  required this.onPressed,
  this.backgroundColor,
  this.textColor,
  this.outlineColor,
  this.disabledTextColor,
  this.disabledbackgroundColor,
  this.width,
  this.height,
  this.outlineWidth = 1.0,
  this.outlineRadius = 10,
  this.hoverTextStyle,
  this.hoverbackgroundColor,
  this.status = SFButtonStatus.primary,
  this.isAsChild = false,
  required this.child,
});