Skip to content

Commit 74501e6

Browse files
Fix: Correct structure in PhotoReasoningScreen to resolve compilation error
This commit fixes a compilation error ("Expecting a top level declaration") that occurred after a previous modification to the Send button logic. The error was caused by a `LazyRow` for displaying selected images being mistakenly placed outside its parent `Card` element due to a brace misplacement. This commit moves the `LazyRow` back into the correct `Card` and ensures all braces for `Row`, `Card`, main `Column`, and the `PhotoReasoningScreen` function are balanced. The original Send button logic changes (related to accessibility and text input state) from the previous commit are maintained.
1 parent dd8a22e commit 74501e6

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -383,11 +383,11 @@ fun PhotoReasoningScreen(
383383
tint = if ((isAccessibilityServiceEnabled && userQuestion.isNotBlank()) || !isAccessibilityServiceEnabled) MaterialTheme.colorScheme.primary else Color.Gray,
384384
)
385385
}
386+
} // Closes Row
387+
LazyRow(modifier = Modifier.padding(all = 8.dp)) {
388+
items(imageUris) { uri -> AsyncImage(uri, null, Modifier.padding(4.dp).requiredSize(72.dp)) }
386389
}
387-
}
388-
LazyRow(modifier = Modifier.padding(all = 8.dp)) {
389-
items(imageUris) { uri -> AsyncImage(uri, null, Modifier.padding(4.dp).requiredSize(72.dp)) }
390-
}
390+
} // Closes Card
391391
}
392392
}
393393

0 commit comments

Comments
 (0)