DSButton constructor

DSButton({
  1. required String text,
  2. DSButtonSize size = DSButtonSize.normal,
  3. DSButtonFeedbackStyle feedbackStyle = DSButtonFeedbackStyle.normal,
  4. double? fontSize,
  5. DSButtonFontStyle fontStyle = DSButtonFontStyle.normal,
  6. Color fontColor = Colors.white,
  7. Color? color,
  8. IconData? icon,
  9. dynamic onTapUp(
    1. TapUpDetails
    )?,
  10. dynamic onTapDown(
    1. TapDownDetails
    )?,
  11. DSButtonStyle style = DSButtonStyle.normal,
  12. double activeOpacity = 0.3,
  13. bool disabled = false,
  14. Color? disabledColor,
  15. Key? key,
})

Implementation

DSButton({
  required this.text,
  this.size = DSButtonSize.normal,
  this.feedbackStyle = DSButtonFeedbackStyle.normal,
  this.fontSize,
  this.fontStyle = DSButtonFontStyle.normal,
  this.fontColor = Colors.white,
  this.color,
  this.icon,
  this.onTapUp,
  this.onTapDown,
  this.style = DSButtonStyle.normal,
  this.activeOpacity = 0.3,
  this.disabled = false,
  this.disabledColor,
  Key? key,
}) : super(key: key);