ButtonX.secondary constructor
ButtonX.secondary(
- String text, {
- Key? key,
- double? borderRadius,
- double? borderWidth,
- EdgeInsetsGeometry? innerPadding,
- Size? minSize,
- dynamic onPressed()?,
- dynamic onLongPress()?,
- dynamic onHover()?,
- dynamic onFocusChange()?,
- ButtonStyle? style,
- FocusNode? focusNode,
- bool autofocus = false,
- Clip clipBehavior = Clip.none,
- Widget? child,
- Color? textColor,
- double? textSize,
- FontWeight? textWeight,
- TextStyle? textStyle,
- IconData? icon,
- double? iconSize,
- bool? dot,
- String? badge,
Implementation
ButtonX.secondary(
this.text, {
super.key,
this.borderRadius,
this.borderWidth,
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.general,
backgroundColor = ThemeColor.secondary,
foregroundColor = ThemeColor.onSecondary;