ArcaneCard class

A card component with consistent styling.

Use style presets for cleaner code:

ArcaneCard(
  style: CardStyle.elevated,
  child: Text('Content'),
)
Inheritance

Constructors

ArcaneCard({required Component child, CardStyle? style, EdgeInsets? padding, double? radius, bool border = true, int elevation = 0, void onTap()?, Color? color, bool fillWidth = false, Key? key})
const
ArcaneCard.elevated({required Component child, EdgeInsets? padding, double? radius, void onTap()?, Color? color, bool fillWidth = false, Key? key})
Elevated card with shadow
const
ArcaneCard.flat({required Component child, EdgeInsets? padding, double? radius, void onTap()?, Color? color, bool fillWidth = false, Key? key})
Flat card without shadow
const
ArcaneCard.ghost({required Component child, EdgeInsets? padding, double? radius, void onTap()?, Color? color, bool fillWidth = false, Key? key})
Ghost card (no border, no background)
const
ArcaneCard.glass({required Component child, EdgeInsets? padding, double? radius, void onTap()?, Color? color, bool fillWidth = false, Key? key})
Glass/frosted card
const
ArcaneCard.interactive({required Component child, EdgeInsets? padding, double? radius, void onTap()?, Color? color, bool fillWidth = false, Key? key})
Interactive card (shows hover effect)
const
ArcaneCard.outlined({required Component child, EdgeInsets? padding, double? radius, void onTap()?, Color? color, bool fillWidth = false, Key? key})
Outlined card (border only)
const

Properties

border bool
Whether to show a border (legacy, use CardStyle instead)
final
child Component
The child component
final
color Color?
Custom background color (overrides style)
final
elevation int
Elevation level (legacy, use CardStyle instead)
final
fillWidth bool
Whether to fill width
final
hashCode int
The hash code for this object.
no setterinherited
key Key?
Controls how one component replaces another component in the tree.
finalinherited
onTap → void Function()?
Click handler
final
padding EdgeInsets?
Custom padding (overrides style)
final
radius double?
Border radius (overrides style)
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
style CardStyle?
Style preset (preferred)
final

Methods

build(BuildContext context) Component
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

Static Properties

styles List<StyleRule>
final