BaseIconButton constructor
const
BaseIconButton({
- Key? key,
- IconData? icon,
- String? symbol,
- IconData? fallbackIcon,
- Color? color,
- Color? disabledColor,
- EdgeInsetsGeometry? padding = const EdgeInsets.all(8.0),
- VoidCallback? onPressed,
- double? minSize = kMinInteractiveDimensionCupertino,
- double? pressedOpacity = 0.4,
- BorderRadius? borderRadius = const BorderRadius.all(Radius.circular(8.0)),
- double iconSize = 24.0,
- VisualDensity? visualDensity,
- double? splashRadius,
- AlignmentGeometry alignment = Alignment.center,
- Color? focusColor,
- Color? hoverColor,
- Color? highlightColor,
- Color? splashColor,
- FocusNode? focusNode,
- MouseCursor mouseCursor = SystemMouseCursors.click,
- bool autofocus = false,
- String? tooltip,
- bool enableFeedback = true,
- BoxConstraints? constraints,
- bool adaptiveHaptics = true,
- BaseParam? baseParam,
Implementation
const BaseIconButton({
Key? key,
this.icon,
this.symbol,
this.fallbackIcon,
this.color,
this.disabledColor,
this.padding = const EdgeInsets.all(8.0),
this.onPressed,
this.minSize = kMinInteractiveDimensionCupertino,
this.pressedOpacity = 0.4,
this.borderRadius = const BorderRadius.all(Radius.circular(8.0)),
this.iconSize = 24.0,
this.visualDensity,
this.splashRadius,
this.alignment = Alignment.center,
this.focusColor,
this.hoverColor,
this.highlightColor,
this.splashColor,
this.focusNode,
this.mouseCursor = SystemMouseCursors.click,
this.autofocus = false,
this.tooltip,
this.enableFeedback = true,
this.constraints,
/// Enhanced haptic feedback for icon interactions
/// CNIcon components automatically include liquid glass effects
this.adaptiveHaptics = true,
BaseParam? baseParam,
}) : super(key: key, baseParam: baseParam);