small static method
SingleChildModifier
small({
- Key? key,
- Widget? child,
- Key? modifierKey,
- String? tooltip,
- Color? foregroundColor,
- Color? backgroundColor,
- Color? focusColor,
- Color? hoverColor,
- Color? splashColor,
- Object? heroTag,
- required VoidCallback? onPressed,
- MouseCursor? mouseCursor,
- double? elevation,
- double? focusElevation,
- double? hoverElevation,
- double? highlightElevation,
- double? disabledElevation,
- ShapeBorder? shape,
- Clip clipBehavior = Clip.none,
- FocusNode? focusNode,
- bool autofocus = false,
- MaterialTapTargetSize? materialTapTargetSize,
- bool? enableFeedback,
- double? extendedIconLabelSpacing,
- EdgeInsetsGeometry? extendedPadding,
- TextStyle? extendedTextStyle,
Creates a small circular floating action button.
This constructor overrides the default size constraints of the floating action button.
The clipBehavior
and autofocus
arguments must not be null.
Additionally, elevation
, focusElevation
, hoverElevation
,
highlightElevation
, and disabledElevation
(if specified) must be
non-negative.
Implementation
static SingleChildModifier small({
Key? key,
Widget? child,
Key? modifierKey,
String? tooltip,
Color? foregroundColor,
Color? backgroundColor,
Color? focusColor,
Color? hoverColor,
Color? splashColor,
Object? heroTag,
required VoidCallback? onPressed,
MouseCursor? mouseCursor,
double? elevation,
double? focusElevation,
double? hoverElevation,
double? highlightElevation,
double? disabledElevation,
ShapeBorder? shape,
Clip clipBehavior = Clip.none,
FocusNode? focusNode,
bool autofocus = false,
MaterialTapTargetSize? materialTapTargetSize,
bool? enableFeedback,
double? extendedIconLabelSpacing,
EdgeInsetsGeometry? extendedPadding,
TextStyle? extendedTextStyle,
}) =>
_FloatingActionButtonModifierSmall(
key: key,
modifierKey: modifierKey,
onPressed: onPressed,
autofocus: autofocus,
backgroundColor: backgroundColor,
clipBehavior: clipBehavior,
disabledElevation: disabledElevation,
elevation: elevation,
enableFeedback: enableFeedback,
focusColor: focusColor,
focusElevation: focusElevation,
focusNode: focusNode,
foregroundColor: foregroundColor,
heroTag: heroTag,
highlightElevation: highlightElevation,
hoverColor: hoverColor,
hoverElevation: hoverElevation,
materialTapTargetSize: materialTapTargetSize,
mouseCursor: mouseCursor,
shape: shape,
splashColor: splashColor,
tooltip: tooltip,
child: child,
);