FxButton.medium constructor

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

Implementation

FxButton.medium(
    {required this.onPressed,
      required this.child,
      this.msPadding,
      this.padding = const EdgeInsets.fromLTRB(24, 16, 24, 16),
      this.msShape,
      this.block = false,
      this.shape,
      this.soft = false,
      this.borderRadius,
      this.borderRadiusAll,
      this.msBackgroundColor,
      this.backgroundColor,
      this.buttonType = FxButtonType.elevated,
      this.style,
      this.msSide,
      this.disabled = false,
      this.side,
      this.borderColor = Colors.transparent,
      this.msShadowColor,
      this.msElevation,
      this.elevation = 4,
      this.shadowColor,
      this.tapTargetSize = MaterialTapTargetSize.padded,
      this.splashColor});