CustomButtonBase constructor

const CustomButtonBase({
  1. required Function? onPressed,
  2. Key? key,
  3. VoidCallback? onLongPress,
  4. ValueChanged<bool>? onHover,
  5. ValueChanged<bool>? onFocusChange,
  6. ButtonStyle? style,
  7. FocusNode? focusNode,
  8. WidgetStatesController? statesController,
  9. Clip clipBehavior = Clip.none,
  10. bool autofocus = false,
  11. CustomButtonSize? size,
  12. double? width,
  13. double? height,
  14. EdgeInsetsGeometry? margin,
  15. 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,
});