ZdsButton constructor

const ZdsButton(
  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. String? semanticLabel}
)

Creates a filled ZdsButton. (Primary button). Use ZdsButton.filled until old buttons are fully removed. Currently, this acts as a backward compatible constructor for the old buttons.

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

Implementation

const ZdsButton