Tgo1014
10/06/2025, 2:20 PMJack Boswell
10/06/2025, 10:02 PMTgo1014
10/07/2025, 8:09 AM@Preview
@Composable
fun test() {
Row(Modifier.padding(16.dp)) {
val offset by remember { mutableStateOf((-50).dp) }
Box(Modifier.size(100.dp).background(Color.Red))
Box(Modifier.size(100.dp).offset(x = offset).background(Color.Blue))
}
}
Making it a state doesn't solve for me 🤔 look at the blank space at the endJack Boswell
10/07/2025, 8:13 AMJack Boswell
10/07/2025, 8:14 AMTgo1014
10/07/2025, 8:15 AMJack Boswell
10/07/2025, 8:35 AMJack Boswell
10/07/2025, 8:35 AMStylianos Gakis
10/07/2025, 8:53 AMTgo1014
10/07/2025, 9:05 AMJack Boswell
10/07/2025, 9:06 AMStylianos Gakis
10/07/2025, 10:47 AM