BtnSF constructor
const
BtnSF({
- Key? key,
- required String? text,
- dynamic onPressed()?,
- dynamic onHover()?,
- Color? textColor,
- Color? bgColor,
- Color? foregroundColor,
- Color? borderColor,
- bool hasBorder = true,
- bool isLoose = false,
- bool hasBold = false,
- bool isTextOnly = false,
- double? radius,
- double? textSize,
- Widget? preFix,
- Widget? postFix,
- TextStyle? textStyle,
- double? verticalPadding = 4,
- double? borderWidth = 1,
- ButtonStyle? style,
- Color? shadowColor,
- Color? onSurface,
- double? elevation,
- EdgeInsetsGeometry? padding,
- Size? minimumSize,
- Size? maximumSize,
- Size? fixedSize,
- BorderSide? side,
- OutlinedBorder? shape,
- MainAxisAlignment mainAxisAlignment = MainAxisAlignment.center,
- double? width,
- double? height,
- bool makeInverse = false,
- Widget? loadingWidget,
- Color? loadingColor,
- dynamic onPressedCallBack(
- dynamic ()
Implementation
const BtnSF(
{super.key,
required this.text,
this.onPressed,
this.onHover,
this.textColor,
this.bgColor,
this.foregroundColor,
this.borderColor,
this.hasBorder = true,
this.isLoose = false,
this.hasBold = false,
this.isTextOnly = false,
this.radius,
this.textSize,
this.preFix,
this.postFix,
this.textStyle,
this.verticalPadding = 4,
this.borderWidth = 1,
this.style,
this.shadowColor,
this.onSurface,
this.elevation,
this.padding,
this.minimumSize,
this.maximumSize,
this.fixedSize,
this.side,
this.shape,
this.mainAxisAlignment = MainAxisAlignment.center,
this.width,
this.height,
this.makeInverse = false,
this.loadingWidget,
this.loadingColor,
this.onPressedCallBack});