FxButton constructor

FxButton({
  1. VoidCallback? onPressed,
  2. required Widget child,
  3. MaterialStateProperty<EdgeInsetsGeometry>? msPadding,
  4. EdgeInsetsGeometry? padding,
  5. MaterialStateProperty<EdgeInsetsGeometry>? msShape,
  6. OutlinedBorder? shape,
  7. BorderRadiusGeometry? borderRadius,
  8. double? borderRadiusAll = 0,
  9. MaterialStateProperty<Color>? msBackgroundColor,
  10. Color? backgroundColor,
  11. FxButtonType? buttonType = FxButtonType.elevated,
  12. ButtonStyle? style,
  13. MaterialStateProperty<Color>? msShadowColor,
  14. MaterialStateProperty<BorderSide>? msSide,
  15. BorderSide? side,
  16. Color borderColor = Colors.transparent,
  17. bool? disabled = false,
  18. bool? block = false,
  19. bool soft = false,
  20. MaterialStateProperty<double>? msElevation,
  21. double? elevation = 4,
  22. Color? shadowColor,
  23. 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});