GFIconButton constructor

const GFIconButton({
  1. Key? key,
  2. double iconSize = 0.0,
  3. EdgeInsetsGeometry padding = const EdgeInsets.all(8),
  4. AlignmentGeometry alignment = Alignment.center,
  5. required Widget icon,
  6. Color? focusColor,
  7. Color? hoverColor,
  8. Color? highlightColor,
  9. Color? splashColor,
  10. Color? disabledColor,
  11. required VoidCallback? onPressed,
  12. FocusNode? focusNode,
  13. bool autofocus = false,
  14. String? tooltip,
  15. GFButtonType type = GFButtonType.solid,
  16. GFIconButtonShape shape = GFIconButtonShape.standard,
  17. Color color = GFColors.PRIMARY,
  18. ShapeBorder? borderShape,
  19. BoxShadow? boxShadow,
  20. double size = GFSize.MEDIUM,
  21. bool? buttonBoxShadow,
  22. BorderSide? borderSide,
})

Create icon buttons of all types. check out GFButton for buttons

Implementation

const GFIconButton({
  Key? key,
  this.iconSize = 0.0,
  this.padding = const EdgeInsets.all(8),
  this.alignment = Alignment.center,
  required this.icon,
  this.focusColor,
  this.hoverColor,
  this.highlightColor,
  this.splashColor,
  this.disabledColor,
  required this.onPressed,
  this.focusNode,
  this.autofocus = false,
  this.tooltip,
  this.type = GFButtonType.solid,
  this.shape = GFIconButtonShape.standard,
  this.color = GFColors.PRIMARY,
  this.borderShape,
  this.boxShadow,
  this.size = GFSize.MEDIUM,
  this.buttonBoxShadow,
  this.borderSide,
}) : super(key: key);