IconButton.filledTonal constructor
- Key? key,
- double? iconSize,
- VisualDensity? visualDensity,
- EdgeInsetsGeometry? padding,
- AlignmentGeometry? alignment,
- double? splashRadius,
- Color? color,
- Color? focusColor,
- Color? hoverColor,
- Color? highlightColor,
- Color? splashColor,
- Color? disabledColor,
- required VoidCallback? onPressed,
- MouseCursor? mouseCursor,
- FocusNode? focusNode,
- bool autofocus = false,
- String? tooltip,
- bool? enableFeedback,
- BoxConstraints? constraints,
- ButtonStyle? style,
- bool? isSelected,
- Widget? selectedIcon,
- required Widget icon,
Create a filled tonal variant of IconButton.
Filled tonal icon buttons are a middle ground between filled and outlined icon buttons. They’re useful in contexts where the button requires slightly more emphasis than an outline would give, such as a secondary action paired with a high emphasis action.
Implementation
const IconButton.filledTonal({
super.key,
this.iconSize,
this.visualDensity,
this.padding,
this.alignment,
this.splashRadius,
this.color,
this.focusColor,
this.hoverColor,
this.highlightColor,
this.splashColor,
this.disabledColor,
required this.onPressed,
this.mouseCursor,
this.focusNode,
this.autofocus = false,
this.tooltip,
this.enableFeedback,
this.constraints,
this.style,
this.isSelected,
this.selectedIcon,
required this.icon,
}) : assert(splashRadius == null || splashRadius > 0),
_variant = _IconButtonVariant.filledTonal;