TDButton constructor

const TDButton({
  1. Key? key,
  2. String? text,
  3. TDButtonSize size = TDButtonSize.medium,
  4. TDButtonType type = TDButtonType.fill,
  5. TDButtonShape shape = TDButtonShape.rectangle,
  6. TDButtonTheme? theme,
  7. Widget? child,
  8. bool disabled = false,
  9. bool isBlock = false,
  10. TDButtonStyle? style,
  11. TDButtonStyle? activeStyle,
  12. TDButtonStyle? disableStyle,
  13. TextStyle? textStyle,
  14. TextStyle? disableTextStyle,
  15. double? width,
  16. double? height,
  17. TDButtonEvent? onTap,
  18. IconData? icon,
  19. Widget? iconWidget,
  20. TDButtonEvent? onLongPress,
  21. EdgeInsetsGeometry? margin,
  22. EdgeInsetsGeometry? padding,
})

Implementation

const TDButton(
    {Key? key,
    this.text,
    this.size = TDButtonSize.medium,
    this.type = TDButtonType.fill,
    this.shape = TDButtonShape.rectangle,
    this.theme,
    this.child,
    this.disabled = false,
      this.isBlock = false,
    this.style,
    this.activeStyle,
    this.disableStyle,
    this.textStyle,
    this.disableTextStyle,
    this.width,
    this.height,
    this.onTap,
    this.icon,
      this.iconWidget,
    this.onLongPress,
    this.margin,
    this.padding})
    : super(key: key);