Skip to content

Commit 05fa0ff

Browse files
authored
Update README.md
1 parent 102c685 commit 05fa0ff

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,9 @@ Add Expandable Horizontal Pager in Android Jetpack Compose.
1111
```kotlin
1212
ExpandableHorizontalPager(
1313
count = films.size,
14+
initialHorizontalPadding = 80.dp,
1415
targetWidth = maxWidth,
15-
mainContent = { page, expanded ->
16+
mainContent = { page ->
1617
AsyncImage(
1718
modifier = Modifier.fillMaxSize(),
1819
model = ImageRequest.Builder(LocalContext.current)
@@ -24,13 +25,13 @@ ExpandableHorizontalPager(
2425
)
2526
},
2627
overMainContentExpanded = { page ->
27-
OverMainContentExpanded(
28+
OverMainContent(
2829
title = "Details",
2930
imageVector = Icons.Default.KeyboardArrowDown
3031
)
3132
},
3233
overMainContentCollapsed = { page ->
33-
OverMainContentExpanded(
34+
OverMainContent(
3435
title = "Close",
3536
imageVector = Icons.Default.KeyboardArrowUp,
3637
iconOnTop = true

0 commit comments

Comments
 (0)