When you add a clickable modifier on an Image that was previously aligned with a text, it's no more aligned. Due to the "touch area" added by clickable I guess?
How can I overcome this?
My code:
Row(
modifier.fillMaxWidth(),
verticalAlignment = Alignment.CenterVertically,
horizontalArrangement = Arrangement.SpaceBetween
) {
Image(
modifier = modifier.clickable { onBackClick?.invoke() }
imageVector = ImageVector.vectorResource(viewModel.backIconId),
contentDescription = "",
alignment = Alignment.Center
)
Text(
text = stringResource(viewModel.titleStringId),
style = typography.subtitle1
)
Text(
text = " ",
style = typography.subtitle1
)
}
Whats it's like (not preview but in-app render) with and without clickable

