FeatureCard class
A feature/navigation surface: an optional accent-tinted icon badge, a bold title, a muted description, and an optional call-to-action row. Lays out vertically by default and horizontally when horizontal is set. Becomes an anchor when href is set, or a clickable button when onTap is set. Themed automatically by the active stylesheet.
- Inheritance
-
- Object
- Component
- StatelessComponent
- StatelessWidget
- FeatureCard
Constructors
- FeatureCard({required String title, required String description, Widget? icon, String? href, void onTap()?, bool showArrow = false, bool horizontal = false, String? accentColor, String? ctaText, bool isExternal = false, bool showCta = false, ArcaneStyleData? styles, ArcaneDecoration? decoration, Key? key})
-
const
- FeatureCard.accented({required String title, required String description, required Widget icon, required String accentColor, String? href, void onTap()?, String? ctaText, bool isExternal = false, ArcaneStyleData? styles, ArcaneDecoration? decoration, Key? key})
-
Creates a feature card with accent color styling and a CTA row.
const
Properties
- accentColor → String?
-
Custom accent color (CSS color value) tinting the icon badge, the CTA, and
the card's complete border.
final
- ctaText → String?
-
Custom CTA text. Defaults to 'Learn More', or 'View Docs' when external.
final
- decoration → ArcaneDecoration?
-
Semantic, theme-interpreted decoration (elevation + theme-specific fields).
final
- description → String
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- horizontal → bool
-
final
- href → String?
-
final
- icon → Widget?
-
final
- isExternal → bool
-
Whether the link opens in a new tab (external link).
final
- key → Key?
-
Controls how one component replaces another component in the tree.
finalinherited
- onTap → void Function()?
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- showArrow → bool
-
final
- showCta → bool
-
Whether to show the CTA row at the bottom.
final
- styles → ArcaneStyleData?
-
Literal, theme-permeable style override (always applied, wins over theme).
final
- title → String
-
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