Skip to content

Commit c8d703e

Browse files
Fix: Position status cards at the bottom of the screen
The "Command Status" and "Detected Commands" cards were incorrectly appearing in the middle of the screen. This commit modifies the main `Column` within `PhotoReasoningScreen.kt` by adding `Modifier.fillMaxHeight()`. This ensures that the main Column expands to the full available height, allowing the `LazyColumn` for chat messages (with `Modifier.weight(1f)`) to correctly push the status cards to the bottom of the screen, below the chat and user input field.
1 parent 9ae6dc5 commit c8d703e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

app/src/main/kotlin/com/google/ai/sample/feature/multimodal/PhotoReasoningScreen.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ fun PhotoReasoningScreen(
273273
}
274274
}
275275

276-
Column(modifier = Modifier.padding(all = 16.dp)) {
276+
Column(modifier = Modifier.padding(all = 16.dp).fillMaxHeight()) {
277277
Card(
278278
modifier = Modifier.fillMaxWidth().padding(bottom = 16.dp),
279279
colors = CardDefaults.cardColors(containerColor = MaterialTheme.colorScheme.primaryContainer)

0 commit comments

Comments
 (0)