xElevatedButtonIcon method
Widget
xElevatedButtonIcon
(- {bool autofocus = false,
- Clip clipBehavior = Clip.none,
- Color color,
- FocusNode focusNode,
- Key key,
- MaterialTapTargetSize materialTapTargetSize,
- void onLongPress(
),
- EdgeInsetsGeometry padding,
- ShapeBorder shape,
- BorderSide side,
- ButtonTextTheme textTheme,
- Widget child,
- AlignmentGeometry alignment,
- double elevation,
- Duration animationDuration,
- MouseCursor disabledMouseCursor,
- Color primary,
- Color shadowColor,
- TextStyle textStyle,
- VisualDensity visualDensity,
- bool enableFeedback,
- MouseCursor enabledMouseCursor,
- Size minimumSize,
- Color onSurface,
- void onPressed(
),
- Widget label}
)
Implementation
Widget xElevatedButtonIcon(
{bool autofocus = false,
Clip clipBehavior = Clip.none,
Color color,
FocusNode focusNode,
Key key,
MaterialTapTargetSize materialTapTargetSize,
void Function() onLongPress,
EdgeInsetsGeometry padding,
ShapeBorder shape,
BorderSide side,
ButtonTextTheme textTheme,
Widget child,
AlignmentGeometry alignment,
double elevation,
Duration animationDuration,
MouseCursor disabledMouseCursor,
Color primary,
Color shadowColor,
TextStyle textStyle,
VisualDensity visualDensity,
bool enableFeedback,
MouseCursor enabledMouseCursor,
Size minimumSize,
Color onSurface,
void Function() onPressed,
final Widget label}) {
return ElevatedButton.icon(
onPressed: onPressed,
icon: this,
label: label,
autofocus: autofocus,
clipBehavior: clipBehavior,
style: ElevatedButton.styleFrom(
padding: padding,
shape: shape,
alignment: alignment,
animationDuration: animationDuration,
disabledMouseCursor: disabledMouseCursor,
primary: color,
shadowColor: shadowColor,
side: side,
textStyle: textStyle,
visualDensity: visualDensity,
enableFeedback: enableFeedback,
enabledMouseCursor: enabledMouseCursor,
minimumSize: minimumSize,
onSurface: onSurface,
tapTargetSize: materialTapTargetSize,
elevation: elevation,
onPrimary: primary,
),
key: key,
focusNode: focusNode,
onLongPress: onLongPress,
);
}