Button.accent constructor
const
Button.accent({
- String? label,
- Widget? child,
- Widget? icon,
- Widget? trailing,
- void onPressed()?,
- ArcaneInteraction? action,
- ButtonSize size = ButtonSize.medium,
- bool disabled = false,
- bool loading = false,
- bool fullWidth = false,
- Map<
String, String> ? attributes, - String? id,
- ButtonType type = ButtonType.button,
- String? href,
- bool showArrow = false,
- ArcaneStyleData? styles,
- ArcaneDecoration? decoration,
- Key? key,
Accent variant with gradient background. Useful for prominent CTA buttons.
Implementation
const Button.accent({
this.label,
this.child,
this.icon,
this.trailing,
this.onPressed,
this.action,
this.size = ButtonSize.medium,
this.disabled = false,
this.loading = false,
this.fullWidth = false,
this.attributes,
this.id,
this.type = ButtonType.button,
this.href,
this.showArrow = false,
this.styles,
this.decoration,
super.key,
}) : variant = ButtonVariant.accent;