FxButton constructor

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