Skip to content

Commit ced4126

Browse files
kikosodkhawk
andauthored
docs: add visual header explaining nested scrolling in LazyColumn (#882)
Add a visual header to each map card in MapsInLazyColumnActivity to explicitly demonstrate how the map interaction disables the list's scrolling. This provides a clear, in-app reference for developers facing issues with nested scrolling in LazyColumn. Fixes #14 Co-authored-by: Dale Hawkins <107309+dkhawk@users.noreply.github.com>
1 parent 5669abd commit ced4126

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

maps-app/src/main/java/com/google/maps/android/compose/MapsInLazyColumnActivity.kt

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -289,6 +289,15 @@ private fun MapCard(
289289
)
290290
}
291291

292+
Column(
293+
modifier = Modifier.align(Alignment.TopStart)
294+
) {
295+
TextWithBackground(
296+
"Panning this map disables list scroll",
297+
fontWeight = FontWeight.Bold
298+
)
299+
}
300+
292301
Column(
293302
modifier = Modifier.align(Alignment.BottomStart)
294303
) {

0 commit comments

Comments
 (0)