const
Widget.floatingActionButton(- {Key? key,
- Widget? child,
- String? tooltip,
- Color? foregroundColor,
- Color? backgroundColor,
- Color? focusColor,
- Color? hoverColor,
- Color? splashColor,
- double? elevation,
- double? focusElevation,
- double? hoverElevation,
- double? highlightElevation,
- double? disabledElevation,
- required Callback? onPressed,
- MouseCursor? mouseCursor,
- @Default(false) bool mini,
- ShapeBorder? shape,
- @Default(Clip.none) Clip clipBehavior,
- @Default(false) bool autofocus,
- MaterialTapTargetSize? materialTapTargetSize,
- @Default(false) bool isExtended,
- bool? enableFeedback}
)
Implementation
const factory Widget.floatingActionButton({
Key? key,
Widget? child,
String? tooltip,
Color? foregroundColor,
Color? backgroundColor,
Color? focusColor,
Color? hoverColor,
Color? splashColor,
double? elevation,
double? focusElevation,
double? hoverElevation,
double? highlightElevation,
double? disabledElevation,
required Callback? onPressed,
MouseCursor? mouseCursor,
@Default(false) bool mini,
ShapeBorder? shape,
@Default(Clip.none) Clip clipBehavior,
@Default(false) bool autofocus,
MaterialTapTargetSize? materialTapTargetSize,
@Default(false) bool isExtended,
bool? enableFeedback,
}) = FloatingActionButton;