Skip to content

Commit

Permalink
Fix : Change library state
Browse files Browse the repository at this point in the history
  • Loading branch information
orioonyx committed Sep 15, 2022
1 parent 55bcc56 commit 24f3505
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,14 @@ public fun ExpandSwipeView(
imageList: ArrayList<String>,
imageScale: ContentScale,
modifier: Modifier = Modifier,
state: PagerState = rememberPagerState(),
infoSheetState: SwipeableState<Any> = rememberSwipeableState(SheetState.Open),
infoContainerMaxHeight: Dp,
infoContainerMinHeight: Dp,
contentBackgroundColor: Color,
contents: @Composable () -> Unit
) {
BoxWithConstraints {
val state: PagerState = rememberPagerState()
val infoMaxHeightInPixels = with(LocalDensity.current) { infoContainerMaxHeight.toPx() }
val infoMinHeightInPixels = with(LocalDensity.current) { infoContainerMinHeight.toPx() }
val dragRange = infoMaxHeightInPixels - infoMinHeightInPixels
Expand Down

0 comments on commit 24f3505

Please sign in to comment.