ZdsButton.text constructor

const ZdsButton.text(
  1. {required Widget child,
  2. Key? key,
  3. bool isOnDarkBackground = false,
  4. VoidCallback? onTap,
  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 ZdsButton that behaves as a TextButton. (Tertiary button)

The child argument must not be null.

Implementation

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