ZdsButton.filled constructor
- {required Widget child,
- Key? key,
- VoidCallback? onTap,
- bool isDangerButton = false,
- bool autofocus = false,
- Clip clipBehavior = Clip.none,
- FocusNode? focusNode,
- VoidCallback? onLongPress,
- ValueChanged<
bool> ? onHover, - ValueChanged<
bool> ? onFocusChange, - EdgeInsets? textPadding,
- Color? customColor,
- String? semanticLabel}
Creates a filled ZdsButton. (Primary button). Will be removed when old button versions are fully removed. Will be replaced with ZdsButton constructor.
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;