FxButton constructor
FxButton({
- VoidCallback? onPressed,
- required Widget child,
- MaterialStateProperty<
EdgeInsetsGeometry> ? msPadding, - EdgeInsetsGeometry? padding,
- MaterialStateProperty<
EdgeInsetsGeometry> ? msShape, - OutlinedBorder? shape,
- BorderRadiusGeometry? borderRadius,
- double? borderRadiusAll = 0,
- MaterialStateProperty<
Color> ? msBackgroundColor, - Color? backgroundColor,
- FxButtonType? buttonType = FxButtonType.elevated,
- ButtonStyle? style,
- MaterialStateProperty<
Color> ? msShadowColor, - MaterialStateProperty<
BorderSide> ? msSide, - BorderSide? side,
- Color borderColor = Colors.transparent,
- bool? disabled = false,
- bool? block = false,
- bool soft = false,
- MaterialStateProperty<
double> ? msElevation, - double? elevation = 4,
- Color? shadowColor,
- Color? splashColor,
Implementation
FxButton(
{this.onPressed,
required this.child,
this.msPadding,
this.padding,
this.msShape,
this.shape,
this.borderRadius,
this.borderRadiusAll=0,
this.msBackgroundColor,
this.backgroundColor,
this.buttonType = FxButtonType.elevated,
this.style,
this.msShadowColor,
this.msSide,
this.side,
this.borderColor = Colors.transparent,
this.disabled = false,
this.block = false,
this.soft = false,
this.msElevation,
this.elevation = 4,
this.shadowColor,
this.splashColor});