File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -11,8 +11,9 @@ Add Expandable Horizontal Pager in Android Jetpack Compose.
1111``` kotlin
1212ExpandableHorizontalPager (
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
You can’t perform that action at this time.
0 commit comments