FloatingActionButtonModifier constructor

const FloatingActionButtonModifier({
  1. Key? key,
  2. Widget? child,
  3. Key? modifierKey,
  4. String? tooltip,
  5. Color? foregroundColor,
  6. Color? backgroundColor,
  7. Color? focusColor,
  8. Color? hoverColor,
  9. Color? splashColor,
  10. Object? heroTag,
  11. double? elevation,
  12. double? focusElevation,
  13. double? hoverElevation,
  14. double? highlightElevation,
  15. double? disabledElevation,
  16. required VoidCallback? onPressed,
  17. MouseCursor? mouseCursor,
  18. bool mini = false,
  19. ShapeBorder? shape,
  20. Clip clipBehavior = Clip.none,
  21. FocusNode? focusNode,
  22. bool autofocus = false,
  23. MaterialTapTargetSize? materialTapTargetSize,
  24. bool isExtended = false,
  25. bool? enableFeedback,
})

Creates a circular floating action button.

The mini and clipBehavior arguments must not be null. Additionally, elevation, highlightElevation, and disabledElevation (if specified) must be non-negative.

Implementation

const FloatingActionButtonModifier({
  super.key,
  super.child,
  super.modifierKey,
  this.tooltip,
  this.foregroundColor,
  this.backgroundColor,
  this.focusColor,
  this.hoverColor,
  this.splashColor,
  this.heroTag,
  this.elevation,
  this.focusElevation,
  this.hoverElevation,
  this.highlightElevation,
  this.disabledElevation,
  required this.onPressed,
  this.mouseCursor,
  this.mini = false,
  this.shape,
  this.clipBehavior = Clip.none,
  this.focusNode,
  this.autofocus = false,
  this.materialTapTargetSize,
  this.isExtended = false,
  this.enableFeedback,
})  : extendedIconLabelSpacing = null,
      extendedPadding = null,
      extendedTextStyle = null;