CustomFilledButtonIcon constructor

const CustomFilledButtonIcon({
  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. EdgeInsetsGeometry? margin,
  17. EdgeInsetsGeometry? padding,
  18. Color? foregroundColor,
  19. Color? backgroundColor,
})

FilledButtonIcon 图标填充按钮组件

Implementation

const CustomFilledButtonIcon({
  required super.onPressed,
  required this.icon,
  required this.label,
  super.key,
  super.onLongPress,
  super.onHover,
  super.onFocusChange,
  super.style,
  super.focusNode,
  super.autofocus = false,
  super.clipBehavior = Clip.none,
  super.statesController,
  // -------------------------------------------------------- > Custom
  super.size,
  super.width,
  super.height,
  super.margin,
  super.padding,
  this.foregroundColor,
  this.backgroundColor,
});