ZwapButtonDecorations.primaryDark constructor

ZwapButtonDecorations.primaryDark({
  1. Border? border,
  2. Border? disabledBorder,
  3. Border? focussedBorder,
  4. Border? hoverBorder,
  5. Color? backgroundColor,
  6. BorderRadius? borderRadius,
  7. Color? disabledColor,
  8. Gradient? disabledGradient,
  9. Gradient? gradient,
  10. Color? hoverColor,
  11. EdgeInsets? internalPadding,
  12. Gradient? hoverGradient,
  13. Color? focussedColor,
  14. Gradient? focussedGradient,
  15. BoxShadow? shadow,
  16. BoxShadow? hoverShadow,
  17. BoxShadow? disabledShadow,
  18. BoxShadow? focussedShadow,
  19. Color? contentColor,
  20. Color? hoverContentColor,
  21. Color? disabledContentColor,
  22. Color? focussedContentColor,
  23. Border? pressedBorder,
  24. Color? pressedColor,
  25. Gradient? pressedGradient,
  26. BoxShadow? pressedShadow,
  27. Color? pressedContentColor,
  28. double? borderWitdh,
  29. Duration? animationDuration,
})

borderWitdh Not used if custom border is provided

Implementation

ZwapButtonDecorations.primaryDark({
  Border? border,
  Border? disabledBorder,
  Border? focussedBorder,
  Border? hoverBorder,
  Color? backgroundColor,
  BorderRadius? borderRadius,
  Color? disabledColor,
  Gradient? disabledGradient,
  Gradient? gradient,
  Color? hoverColor,
  EdgeInsets? internalPadding,
  Gradient? hoverGradient,
  Color? focussedColor,
  Gradient? focussedGradient,
  BoxShadow? shadow,
  BoxShadow? hoverShadow,
  BoxShadow? disabledShadow,
  BoxShadow? focussedShadow,
  Color? contentColor,
  Color? hoverContentColor,
  Color? disabledContentColor,
  Color? focussedContentColor,
  Border? pressedBorder,
  Color? pressedColor,
  Gradient? pressedGradient,
  BoxShadow? pressedShadow,
  Color? pressedContentColor,
  double? borderWitdh,
  this.animationDuration,
})  : this.backgroundColor = backgroundColor ?? ZwapColors.primary900Dark,
      this.focussedColor = focussedColor ?? ZwapColors.primary700Dark,
      this.hoverColor = hoverColor ?? ZwapColors.primary700Dark,
      this.disabledColor = disabledColor ?? ZwapColors.neutral300Dark,
      this.borderRadius = borderRadius ?? BorderRadius.circular(ZwapRadius.buttonRadius),
      this.border = border,
      this.disabledBorder = disabledBorder,
      this.focussedBorder = focussedBorder,
      this.hoverBorder = hoverBorder,
      this.disabledGradient = disabledGradient,
      this.gradient = gradient ?? null,
      this.hoverGradient = hoverGradient ?? null,
      this.internalPadding = internalPadding ?? const EdgeInsets.symmetric(vertical: 7.5, horizontal: 20),
      this.shadow = shadow,
      this.hoverShadow = hoverShadow,
      this.disabledShadow = disabledShadow,
      this.focussedShadow = focussedShadow,
      this.focussedGradient = focussedGradient,
      this.contentColor = contentColor ?? ZwapColors.shades0,
      this.hoverContentColor = hoverContentColor ?? ZwapColors.shades0,
      this.disabledContentColor = disabledContentColor ?? ZwapColors.shades0,
      this.focussedContentColor = focussedContentColor ?? ZwapColors.shades0,
      this.pressedBorder = pressedBorder ?? Border.all(color: ZwapColors.primary200, width: borderWitdh ?? 2),
      this.pressedColor = pressedColor ?? ZwapColors.primary700Dark,
      this.pressedContentColor = pressedContentColor ?? ZwapColors.shades0,
      this.pressedGradient = pressedGradient,
      this.pressedShadow = pressedShadow;