DSButton constructor
DSButton({
- required String text,
- DSButtonSize size = DSButtonSize.normal,
- DSButtonFeedbackStyle feedbackStyle = DSButtonFeedbackStyle.normal,
- double? fontSize,
- DSButtonFontStyle fontStyle = DSButtonFontStyle.normal,
- Color fontColor = Colors.white,
- Color? color,
- IconData? icon,
- dynamic onTapUp()?,
- dynamic onTapDown()?,
- DSButtonStyle style = DSButtonStyle.normal,
- double activeOpacity = 0.3,
- bool disabled = false,
- Color? disabledColor,
- 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);