FloatingActionButtonModifier constructor
const
FloatingActionButtonModifier({
- Key? key,
- Widget? child,
- Key? modifierKey,
- String? tooltip,
- Color? foregroundColor,
- Color? backgroundColor,
- Color? focusColor,
- Color? hoverColor,
- Color? splashColor,
- Object? heroTag,
- double? elevation,
- double? focusElevation,
- double? hoverElevation,
- double? highlightElevation,
- double? disabledElevation,
- required VoidCallback? onPressed,
- MouseCursor? mouseCursor,
- bool mini = false,
- ShapeBorder? shape,
- Clip clipBehavior = Clip.none,
- FocusNode? focusNode,
- bool autofocus = false,
- MaterialTapTargetSize? materialTapTargetSize,
- bool isExtended = false,
- 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;