ZdsButton.filled constructor

const ZdsButton.filled(
  1. {required Widget child,
  2. Key? key,
  3. VoidCallback? onTap,
  4. bool isDangerButton = false,
  5. bool autofocus = false,
  6. Clip clipBehavior = Clip.none,
  7. FocusNode? focusNode,
  8. VoidCallback? onLongPress,
  9. ValueChanged<bool>? onHover,
  10. ValueChanged<bool>? onFocusChange,
  11. EdgeInsets? textPadding,
  12. Color? customColor,
  13. String? semanticLabel}
)

Creates a filled ZdsButton. (Primary button). Will be removed when old button versions are fully removed. Will be replaced with ZdsButton constructor.

The child argument, usually a Text, must not be null.

Implementation

const ZdsButton.filled({
  required this.child,
  super.key,
  this.onTap,
  this.isDangerButton = false,
  this.autofocus = false,
  this.clipBehavior = Clip.none,
  this.focusNode,
  this.onLongPress,
  this.onHover,
  this.onFocusChange,
  this.textPadding,
  this.customColor,
  this.semanticLabel,
})  : _variant = ZdsButtonVariant.filled,
      isOnDarkBackground = false;