how can I prevent my screen content to go upward w...
# compose
h
how can I prevent my screen content to go upward when I open my keyboard , my code structure look like this
Copy code
Surface(
    modifier = Modifier
        .fillMaxSize()
        .padding(padding)
        .background(MaterialTheme.colorScheme.background)
) {
    Column(
        modifier = Modifier
            .fillMaxSize()
    ) {
        Box(
            modifier = Modifier
                .background(MaterialTheme.colorScheme.background)
                .weight(.9f)
                .fillMaxWidth()
        ){//for messages
            LazyColumn(modifier = Modifier.fillMaxSize()) {
                itemsIndexed(messageList) { index, item ->
                    Text(text = item.message, fontSize = 18.sp)
                }
            }
        }
        Box(){ //for input

          }
    }
}
y
in the modifier add imePadding