Skip to content

Commit

Permalink
Rename bottom sheet progress extension function to progressAsState
Browse files Browse the repository at this point in the history
  • Loading branch information
msasikanth committed Aug 6, 2024
1 parent 17eda8b commit 1a697c7
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ internal fun HomeScreen(homePresenter: HomePresenter, modifier: Modifier = Modif
}
}

val bottomSheetProgress by bottomSheetState.progress()
val bottomSheetProgress by bottomSheetState.progressAsState()
val showScrollToTop by remember { derivedStateOf { listState.firstVisibleItemIndex > 0 } }

val sheetPeekHeight =
Expand Down Expand Up @@ -361,7 +361,7 @@ private fun NoNewPosts() {
}

@Suppress("INVISIBLE_MEMBER", "INVISIBLE_REFERENCE")
private fun SheetState.progress(): State<Float> {
private fun SheetState.progressAsState(): State<Float> {
return derivedStateOf {
when {
currentValue == SheetValue.Expanded && targetValue == SheetValue.Expanded -> 1f
Expand Down

0 comments on commit 1a697c7

Please sign in to comment.