🌈 Create new beautiful Compose Gradients with our new wesite ->
Function

alignByBaseline

Aligns this layout with sibling layouts in a Row by their shared baseline.

alignByBaseline

Source set: Android
public fun RemoteModifier.alignByBaseline(): RemoteModifier

Aligns this layout with sibling layouts in a Row by their shared baseline.

This modifier is used to align layouts within a Row based on their first baseline. It is particularly useful for aligning text-based elements to ensure their baselines match up, creating a visually consistent layout.

This is the remote equivalent of the Modifier.alignByBaseline() modifier in Jetpack Compose.

Example usage within a remote Row:

RemoteRow(
modifier = RemoteModifier.fillMaxWidth()
) {
RemoteText(
text = "First",
modifier = RemoteModifier.alignByBaseline()
)
RemoteText(
text = "Second",
modifier = RemoteModifier.alignByBaseline()
)
}

Content updated: