extended static method
SingleChildModifier
extended({
- Key? key,
- Widget? icon,
- Key? modifierKey,
- required Widget label,
- String? tooltip,
- Color? foregroundColor,
- Color? backgroundColor,
- Color? focusColor,
- Color? hoverColor,
- Object? heroTag,
- double? elevation,
- double? focusElevation,
- double? hoverElevation,
- Color? splashColor,
- double? highlightElevation,
- double? disabledElevation,
- required VoidCallback onPressed,
- MouseCursor mouseCursor = SystemMouseCursors.click,
- ShapeBorder? shape,
- bool isExtended = true,
- MaterialTapTargetSize? materialTapTargetSize,
- Clip clipBehavior = Clip.none,
- FocusNode? focusNode,
- bool autofocus = false,
- double? extendedIconLabelSpacing,
- EdgeInsetsGeometry? extendedPadding,
- TextStyle? extendedTextStyle,
- bool? enableFeedback,
Creates a wider StadiumBorder-shaped floating action button with
an optional icon
and a label
.
The label
, autofocus
, and clipBehavior
arguments must not be null.
Additionally, elevation
, highlightElevation
, and disabledElevation
(if specified) must be non-negative.
See also:
Implementation
static SingleChildModifier extended({
Key? key,
Widget? icon,
Key? modifierKey,
required Widget label,
String? tooltip,
Color? foregroundColor,
Color? backgroundColor,
Color? focusColor,
Color? hoverColor,
Object? heroTag,
double? elevation,
double? focusElevation,
double? hoverElevation,
Color? splashColor,
double? highlightElevation,
double? disabledElevation,
required VoidCallback onPressed,
MouseCursor mouseCursor = SystemMouseCursors.click,
ShapeBorder? shape,
bool isExtended = true,
MaterialTapTargetSize? materialTapTargetSize,
Clip clipBehavior = Clip.none,
FocusNode? focusNode,
bool autofocus = false,
double? extendedIconLabelSpacing,
EdgeInsetsGeometry? extendedPadding,
TextStyle? extendedTextStyle,
bool? enableFeedback,
}) =>
_FloatingActionButtonModifierExtended(
key: key,
modifierKey: modifierKey,
icon: icon,
label: label,
onPressed: onPressed,
autofocus: autofocus,
backgroundColor: backgroundColor,
clipBehavior: clipBehavior,
disabledElevation: disabledElevation,
elevation: elevation,
enableFeedback: enableFeedback,
extendedIconLabelSpacing: extendedIconLabelSpacing,
extendedPadding: extendedPadding,
extendedTextStyle: extendedTextStyle,
focusColor: focusColor,
focusElevation: focusElevation,
focusNode: focusNode,
foregroundColor: foregroundColor,
heroTag: heroTag,
highlightElevation: highlightElevation,
hoverColor: hoverColor,
hoverElevation: hoverElevation,
isExtended: isExtended,
materialTapTargetSize: materialTapTargetSize,
mouseCursor: mouseCursor,
shape: shape,
splashColor: splashColor,
tooltip: tooltip,
);