ButtonX.outline constructor

const ButtonX.outline(
  1. String text, {
  2. Key? key,
  3. double? borderRadius,
  4. double? borderWidth,
  5. Color? backgroundColor,
  6. Color? foregroundColor,
  7. EdgeInsetsGeometry? innerPadding,
  8. Size? minSize,
  9. dynamic onPressed()?,
  10. dynamic onLongPress()?,
  11. dynamic onHover(
    1. bool
    )?,
  12. dynamic onFocusChange(
    1. bool
    )?,
  13. ButtonStyle? style,
  14. FocusNode? focusNode,
  15. bool autofocus = false,
  16. Clip clipBehavior = Clip.none,
  17. Widget? child,
  18. Color? textColor,
  19. double? textSize,
  20. FontWeight? textWeight,
  21. TextStyle? textStyle,
  22. IconData? icon,
  23. double? iconSize,
  24. bool? dot,
  25. String? badge,
})

Implementation

const ButtonX.outline(
  this.text, {
  super.key,
  this.borderRadius,
  this.borderWidth,
  this.backgroundColor, // 按钮背景颜色
  this.foregroundColor, // 文本及图标颜色
  this.innerPadding, // 内边距
  this.minSize, // 最小尺寸限制
  this.onPressed,
  this.onLongPress,
  this.onHover,
  this.onFocusChange,
  this.style,
  this.focusNode,
  this.autofocus = false,
  this.clipBehavior = Clip.none,
  this.child,
  this.textColor,
  this.textSize,
  this.textWeight,
  this.textStyle,
  this.icon,
  this.iconSize,
  this.dot,
  this.badge,
}) : type = ButtonType.outlined;