SFButton constructor
const
SFButton({
- Key? key,
- required void onPressed()?,
- Color? backgroundColor,
- Color? textColor,
- Color? outlineColor,
- Color? disabledTextColor,
- Color? disabledbackgroundColor,
- double? width,
- double? height,
- double outlineWidth = 1.0,
- double outlineRadius = 10,
- TextStyle? hoverTextStyle,
- Color? hoverbackgroundColor,
- SFButtonStatus status = SFButtonStatus.primary,
- bool isAsChild = false,
- 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,
});