BaseIconButton constructor

const BaseIconButton({
  1. Key? key,
  2. IconData? icon,
  3. String? symbol,
  4. IconData? fallbackIcon,
  5. Color? color,
  6. Color? disabledColor,
  7. EdgeInsetsGeometry? padding = const EdgeInsets.all(8.0),
  8. VoidCallback? onPressed,
  9. double? minSize = kMinInteractiveDimensionCupertino,
  10. double? pressedOpacity = 0.4,
  11. BorderRadius? borderRadius = const BorderRadius.all(Radius.circular(8.0)),
  12. double iconSize = 24.0,
  13. VisualDensity? visualDensity,
  14. double? splashRadius,
  15. AlignmentGeometry alignment = Alignment.center,
  16. Color? focusColor,
  17. Color? hoverColor,
  18. Color? highlightColor,
  19. Color? splashColor,
  20. FocusNode? focusNode,
  21. MouseCursor mouseCursor = SystemMouseCursors.click,
  22. bool autofocus = false,
  23. String? tooltip,
  24. bool enableFeedback = true,
  25. BoxConstraints? constraints,
  26. bool adaptiveHaptics = true,
  27. 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);