GradientIconButton constructor

const GradientIconButton({
  1. Key? key,
  2. double iconSize = 24.0,
  3. VisualDensity? visualDensity,
  4. EdgeInsetsGeometry padding = const EdgeInsets.all(8.0),
  5. AlignmentGeometry alignment = Alignment.center,
  6. double? splashRadius,
  7. required Widget icon,
  8. Color? focusColor,
  9. Color? hoverColor,
  10. Color? highlightColor,
  11. Color? splashColor,
  12. Color? disabledColor,
  13. required VoidCallback? onPressed,
  14. MouseCursor mouseCursor = SystemMouseCursors.click,
  15. FocusNode? focusNode,
  16. bool autofocus = false,
  17. String? tooltip,
  18. bool enableFeedback = true,
  19. BoxConstraints? constraints,
  20. required Gradient gradient,
})

Implementation

const GradientIconButton({
  Key? key,
  this.iconSize = 24.0,
  this.visualDensity,
  this.padding = const EdgeInsets.all(8.0),
  this.alignment = Alignment.center,
  this.splashRadius,
  required this.icon,
  this.focusColor,
  this.hoverColor,
  this.highlightColor,
  this.splashColor,
  this.disabledColor,
  required this.onPressed,
  this.mouseCursor = SystemMouseCursors.click,
  this.focusNode,
  this.autofocus = false,
  this.tooltip,
  this.enableFeedback = true,
  this.constraints,
  required this.gradient,
}) : super(key: key);