CtaCard class

A dashed-border, centered call-to-action card: an optional icon in an accent circle, a bold title, a muted description, and a prominent CTA control that links via href or invokes onTap. Themed automatically by the active stylesheet.

Inheritance

Constructors

CtaCard({ArcaneGlyph? icon, required String title, String? description, required String ctaText, String? href, void onTap()?, String height = '420px', String? accentColor, bool isExternal = false, ArcaneStyleData? styles, ArcaneDecoration? decoration, Key? key})
const

Properties

accentColor String?
Accent color (CSS color string) for the icon and CTA button. Defaults to the theme's var(--primary) when null.
final
ctaText String
CTA button text.
final
decoration ArcaneDecoration?
Semantic, theme-interpreted decoration (elevation + theme-specific fields).
final
description String?
Description text below the title.
final
hashCode int
The hash code for this object.
no setterinherited
height String
Custom minimum height for the card.
final
href String?
Link destination (renders the CTA as an anchor when set).
final
icon ArcaneGlyph?
Icon to display at the top of the card.
final
isExternal bool
Whether the CTA links to an external destination. When true, the anchor opens in a new tab with rel="noopener noreferrer" and shows a trailing external-link glyph.
final
key Key?
Controls how one component replaces another component in the tree.
finalinherited
onTap → void Function()?
Callback for click events (used when href is null).
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
styles ArcaneStyleData?
Literal, theme-permeable style override (always applied, wins over theme).
final
title String
Main title/heading text.
final

Methods

build(BuildContext context) Widget
Describes the part of the user interface represented by this component.
override
createElement() Element
Creates a StatelessElement to manage this component's location in the tree.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
shouldRebuild(covariant Component newComponent) bool
Implement this method to determine whether a rebuild can be skipped.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited