Any ideas why my detail presentation here can occasionally present incorrectly?
Something to do with using a
Box
at root level of my detail?
Copy code
@Composable
fun DetailScreen(navController: NavController, itemId: String?) {
Box(
modifier = Modifier
.fillMaxSize() // Make the Box fill the entire screen
.background(color = Color.DarkGray) // Set the background color to dark grey
.padding(16.dp) // Add padding to the content
) {
Column(
modifier = Modifier.fillMaxWidth()
) {
TopAppBar(
title = { Text("Detail Screen") },
navigationIcon = {