icon static method

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