Need help to migrate from Box+PullToRefreshContainer to PullToRefreshBox
a few months ago, I used Box+PullToRefreshContainer in one of my projects in Jetpack Compose. But now, since it has been deprecated and replaced by PullToRefreshBox. I need help regarding, how to migrate to it.
@OptIn(ExperimentalMaterial3Api::class)
@Composable
fun ArticlesList(
modifier: Modifier = Modifier,
articles: LazyPagingItems,
onRefresh: () -> Unit,
onClick: (Article) -> Unit,
lazyListState: LazyListState = rememberLazyListState()
){
val pullToRefreshState =...