CustomButtonBase constructor
const
CustomButtonBase({
- required Function? onPressed,
- Key? key,
- VoidCallback? onLongPress,
- ValueChanged<
bool> ? onHover, - ValueChanged<
bool> ? onFocusChange, - ButtonStyle? style,
- FocusNode? focusNode,
- WidgetStatesController? statesController,
- Clip clipBehavior = Clip.none,
- bool autofocus = false,
- CustomButtonSize? size,
- double? width,
- double? height,
- EdgeInsetsGeometry? margin,
- EdgeInsetsGeometry? padding,
ButtonBase 按钮基类
Implementation
const CustomButtonBase({
required this.onPressed,
super.key,
this.onLongPress,
this.onHover,
this.onFocusChange,
this.style,
this.focusNode,
this.statesController,
this.clipBehavior = Clip.none,
this.autofocus = false,
this.size,
this.width,
this.height,
this.margin,
this.padding,
});