Skip to content

Commit 9e91aa3

Browse files
committed
overMainContentExpanded - Collapsed name fix.
1 parent ba7e277 commit 9e91aa3

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

app/src/main/java/com/commandiron/expandablehorizontalpagercompose/MainActivity.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,13 +68,13 @@ class MainActivity : ComponentActivity() {
6868
contentScale = ContentScale.FillHeight
6969
)
7070
},
71-
overMainContentExpanded = { page ->
71+
overMainContentCollapsed = { page ->
7272
OverMainContent(
7373
title = "Details",
7474
imageVector = Icons.Default.KeyboardArrowDown
7575
)
7676
},
77-
overMainContentCollapsed = { page ->
77+
overMainContentExpanded = { page ->
7878
OverMainContent(
7979
title = "Close",
8080
imageVector = Icons.Default.KeyboardArrowUp,

expandable-horizontal-pager/src/main/java/com/commandiron/expandable_horizontal_pager/ExpandableHorizontalPager.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@ fun ExpandableHorizontalPager(
4545
aspectRatio: Float = 2 / 3f,
4646
durationMillis: Int = 400,
4747
mainContent: @Composable ColumnScope.(page: Int) -> Unit,
48-
overMainContentExpanded: @Composable ColumnScope.(page: Int) -> Unit,
4948
overMainContentCollapsed: @Composable ColumnScope.(page: Int) -> Unit,
49+
overMainContentExpanded: @Composable ColumnScope.(page: Int) -> Unit,
5050
hiddenContentBoxHeight: Dp = Dp.Unspecified,
5151
hiddenContentContainerColor: Color = Color.Black,
5252
hiddenContentContentColor: Color = Color.White,
@@ -298,7 +298,7 @@ fun ExpandableHorizontalPager(
298298
enter = fadeIn(tween(durationMillis)),
299299
exit = fadeOut(tween(durationMillis))
300300
) {
301-
overMainContentExpanded(page)
301+
overMainContentCollapsed(page)
302302
}
303303
}
304304
Column() {
@@ -308,7 +308,7 @@ fun ExpandableHorizontalPager(
308308
enter = fadeIn(tween(durationMillis)),
309309
exit = fadeOut(tween(durationMillis))
310310
) {
311-
overMainContentCollapsed(page)
311+
overMainContentExpanded(page)
312312
}
313313
}
314314
}

0 commit comments

Comments
 (0)