M3EButton.elevated constructor
const
M3EButton.elevated({
- Key? key,
- required VoidCallback? onPressed,
- Widget? child,
- M3EButtonSize size = M3EButtonSize.sm,
- M3EButtonShape shape = M3EButtonShape.round,
- bool enabled = true,
- WidgetStatesController? statesController,
- M3EButtonDecoration? decoration,
- FocusNode? focusNode,
- bool autofocus = false,
- ValueChanged<
bool> ? onFocusChange, - String? semanticLabel,
- String? tooltip,
- MouseCursor mouseCursor = SystemMouseCursors.click,
- VoidCallback? onLongPress,
- ValueChanged<
bool> ? onHover, - bool enableFeedback = _kDefaultEnableFeedback,
- InteractiveInkFeatureFactory? splashFactory,
An elevated button (medium emphasis with a shadow).
Implementation
const M3EButton.elevated({
super.key,
required this.onPressed,
this.child,
this.size = M3EButtonSize.sm,
this.shape = M3EButtonShape.round,
this.enabled = true,
this.statesController,
this.decoration,
this.focusNode,
this.autofocus = false,
this.onFocusChange,
this.semanticLabel,
this.tooltip,
this.mouseCursor = SystemMouseCursors.click,
this.onLongPress,
this.onHover,
this.enableFeedback = _kDefaultEnableFeedback,
this.splashFactory,
}) : style = M3EButtonStyle.elevated;