M3EButton.outlined constructor

const M3EButton.outlined({
  1. Key? key,
  2. required VoidCallback? onPressed,
  3. Widget? child,
  4. M3EButtonSize size = M3EButtonSize.sm,
  5. M3EButtonShape shape = M3EButtonShape.round,
  6. bool enabled = true,
  7. WidgetStatesController? statesController,
  8. M3EButtonDecoration? decoration,
  9. FocusNode? focusNode,
  10. bool autofocus = false,
  11. ValueChanged<bool>? onFocusChange,
  12. String? semanticLabel,
  13. String? tooltip,
  14. MouseCursor mouseCursor = SystemMouseCursors.click,
  15. VoidCallback? onLongPress,
  16. ValueChanged<bool>? onHover,
  17. bool enableFeedback = _kDefaultEnableFeedback,
  18. InteractiveInkFeatureFactory? splashFactory,
})

An outlined button (medium emphasis with a border).

Implementation

const M3EButton.outlined({
  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.outlined;