icon static method
dynamic
icon({
- required void 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,
- EdgeInsetsGeometry? margin,
- EdgeInsetsGeometry? padding,
- Color? foregroundColor,
- Color? backgroundColor,
图标填充按钮组件
Implementation
static icon({
required void 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,
EdgeInsetsGeometry? margin,
EdgeInsetsGeometry? padding,
Color? foregroundColor,
Color? backgroundColor,
}) {
return CustomFilledButtonIcon(
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,
margin: margin,
padding: padding,
foregroundColor: foregroundColor,
backgroundColor: backgroundColor,
);
}