Lyrics Line Item
fun LyricsLineItem(isFocused: Boolean, isRightAligned: Boolean, onLineClicked: () -> Unit, onLinePressed: () -> Unit, blurRadius: () -> Float, modifier: ERROR CLASS: Symbol not found for Modifier = Modifier, activeAlpha: Float = 1.0f, inactiveAlpha: Float = 0.4f, blendMode: ERROR CLASS: Symbol not found for BlendMode = BlendMode.SrcOver, content: () -> Unit)
A container for a single line of lyrics, handling common interactions and animations. Features:
Scale animation on focus
Alpha animation on focus/active state
Blur effect
Click and long-press handling
Parameters
is Focused
Whether the line is currently the active/focused line.
is Right Aligned
Whether the line is right-aligned (e.g., for certain karaoke styles or RTL).
on Line Clicked
Callback for click events.
on Line Pressed
Callback for long-press events.
blur Radius
Provider for the blur radius (allows animation).
modifier
Modifier for the container.
active Alpha
Alpha value when active/focused.
inactive Alpha
Alpha value when inactive.
blend Mode
Blend mode for drawing the content.
content
The composable content of the line (text).