nodeCardGlow

fun Modifier.nodeCardGlow(lastHeard: Int, nodeColor: Color): Modifier(source)

A modifier that applies a glow animation to a node card when a packet is received.

The glow blooms quickly using MaterialTheme.motionScheme.fastSpatialSpec and decays slowly using MaterialTheme.motionScheme.slowSpatialSpec, creating an M3 Expressive motion effect.

Parameters

lastHeard

The node's lastHeard timestamp. Changes trigger the glow animation.

nodeColor

The color used for the glow shadow (typically the node's assigned color).