ZetaButton.secondary constructor

  1. @Deprecated('Secondary buttons are deprecated and will be removed in a future version.')
const ZetaButton.secondary({
  1. Key? key,
  2. required String label,
  3. VoidCallback? onPressed,
  4. ZetaWidgetSize size = ZetaWidgetSize.medium,
  5. ZetaWidgetBorder? borderType,
  6. IconData? leadingIcon,
  7. IconData? trailingIcon,
  8. FocusNode? focusNode,
  9. String? semanticLabel,
})

Constructs ZetaButton with Secondary theme.

Implementation

@Deprecated('Secondary buttons are deprecated and will be removed in a future version.')
const ZetaButton.secondary({
  super.key,
  required this.label,
  this.onPressed,
  this.size = ZetaWidgetSize.medium,
  this.borderType,
  this.leadingIcon,
  this.trailingIcon,
  this.focusNode,
  this.semanticLabel,
}) : type = ZetaButtonType.secondary;