GFIconButton constructor
const
GFIconButton({
- Key? key,
- double iconSize = 0.0,
- EdgeInsetsGeometry padding = const EdgeInsets.all(8),
- AlignmentGeometry alignment = Alignment.center,
- required Widget icon,
- Color? focusColor,
- Color? hoverColor,
- Color? highlightColor,
- Color? splashColor,
- Color? disabledColor,
- required VoidCallback? onPressed,
- FocusNode? focusNode,
- bool autofocus = false,
- String? tooltip,
- GFButtonType type = GFButtonType.solid,
- GFIconButtonShape shape = GFIconButtonShape.standard,
- Color color = GFColors.PRIMARY,
- ShapeBorder? borderShape,
- BoxShadow? boxShadow,
- double size = GFSize.MEDIUM,
- bool? buttonBoxShadow,
- 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);