DTIconButton constructor
const
DTIconButton({
- 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,
- DTButtonType type = DTButtonType.solid,
- DTIconButtonShape shape = DTIconButtonShape.standard,
- Color color = DTColors.PRIMARY,
- ShapeBorder? borderShape,
- BoxShadow? boxShadow,
- double size = DTSize.MEDIUM,
- bool? buttonBoxShadow,
- BorderSide? borderSide,
Implementation
const DTIconButton({
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 = DTButtonType.solid,
this.shape = DTIconButtonShape.standard,
this.color = DTColors.PRIMARY,
this.borderShape,
this.boxShadow,
this.size = DTSize.MEDIUM,
this.buttonBoxShadow,
this.borderSide,
}) : super(key: key);