TDButton constructor
const
TDButton({
- Key? key,
- String? text,
- TDButtonSize size = TDButtonSize.medium,
- TDButtonType type = TDButtonType.fill,
- TDButtonShape shape = TDButtonShape.rectangle,
- TDButtonTheme? theme,
- Widget? child,
- bool disabled = false,
- bool isBlock = false,
- TDButtonStyle? style,
- TDButtonStyle? activeStyle,
- TDButtonStyle? disableStyle,
- TextStyle? textStyle,
- TextStyle? disableTextStyle,
- double? width,
- double? height,
- TDButtonEvent? onTap,
- IconData? icon,
- Widget? iconWidget,
- TDButtonEvent? onLongPress,
- EdgeInsetsGeometry? margin,
- 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);