AuiButton constructor

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

Default constructor with customization options.

Implementation

const AuiButton(
    {super.key,
    this.onPressed,
    required this.child,
    this.msPadding,
    this.padding,
    this.msShape,
    this.shape,
    this.borderRadius,
    this.borderRadiusAll = 0,
    this.msBackgroundColor,
    this.backgroundColor,
    this.buttonType = AuiButtonType.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});