BeuiTiltCard class

A card that tilts in 3D toward the cursor with a following glare — the Flutter port of beUI's tilt-card.

Tracking the pointer over the card sets a target rotation (rotateX = (0.5 - py)·max, rotateY = (px - 0.5)·max) that is spring- smoothed with beuiSpringMouse; the edge under the cursor recedes, as in the source. A soft radial glare follows the cursor. Hover-only (built on MouseRegion, so it never reacts to touch); reduced motion drops the tilt and glare entirely.

Inheritance

Constructors

BeuiTiltCard({required Widget child, double max = 12, bool glare = true, Color? glareColor, BorderRadius borderRadius = const BorderRadius.all(Radius.circular(16)), Key? key})
Creates a tilt card around child (which defines the card's size).
const

Properties

borderRadius → BorderRadius
Corner radius (clips the card and glare). rounded-2xl by default.
final
child → Widget
The card content; its intrinsic size is the card's size.
final
glare → bool
Whether to render the cursor-following glare.
final
glareColor → Color?
Glare colour. Defaults to BeuiColors.foreground.
final
hashCode → int
The hash code for this object.
no setterinherited
key → Key?
Controls how one widget replaces another widget in the tree.
finalinherited
max → double
Maximum tilt, in degrees.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

createElement() → StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() → State<BeuiTiltCard>
Creates the mutable state for this widget at a given location in the tree.
override
debugDescribeChildren() → List<DiagnosticsNode>
Returns a list of DiagnosticsNode objects describing this node's children.
inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toDiagnosticsNode({String? name, DiagnosticsTreeStyle? style}) → DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep.
inherited
toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) → String
A string representation of this object.
inherited
toStringDeep({String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug, int wrapWidth = 65}) → String
Returns a string representation of this node and its descendants.
inherited
toStringShallow({String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) → String
Returns a one-line detailed description of the object.
inherited
toStringShort() → String
A short, textual description of this widget.
inherited

Operators

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