icon static method
dynamic
icon({
- required Function onPressed,
- required Widget icon,
- required Widget label,
- Key? key,
- VoidCallback? onLongPress,
- ValueChanged<
bool> ? onHover, - ValueChanged<
bool> ? onFocusChange, - ButtonStyle? style,
- FocusNode? focusNode,
- bool autofocus = false,
- Clip clipBehavior = Clip.none,
- WidgetStatesController? statesController,
- CustomButtonSize? size,
- double? width,
- double? height,
- double? fontSize,
- Color? color,
- EdgeInsetsGeometry? margin,
- EdgeInsetsGeometry? padding,
图标轮廓按钮组件
Implementation
static icon({
required Function onPressed,
required Widget icon,
required Widget label,
Key? key,
VoidCallback? onLongPress,
ValueChanged<bool>? onHover,
ValueChanged<bool>? onFocusChange,
ButtonStyle? style,
FocusNode? focusNode,
bool autofocus = false,
Clip clipBehavior = Clip.none,
WidgetStatesController? statesController,
CustomButtonSize? size,
double? width,
double? height,
double? fontSize,
Color? color,
EdgeInsetsGeometry? margin,
EdgeInsetsGeometry? padding,
}) {
return CustomOutlinedButtonIcon(
key: key,
onPressed: onPressed,
icon: icon,
label: label,
onLongPress: onLongPress,
onHover: onHover,
onFocusChange: onFocusChange,
style: style,
focusNode: focusNode,
autofocus: autofocus,
clipBehavior: clipBehavior,
statesController: statesController,
size: size,
width: width,
height: height,
fontSize: fontSize,
color: color,
margin: margin,
padding: padding,
);
}