mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2025-10-11 04:03:51 +02:00
Activates pull to refresh on the Stories feed.
This commit is contained in:
@@ -64,6 +64,7 @@ import com.vitorpamplona.amethyst.ui.screen.FeedState
|
|||||||
import com.vitorpamplona.amethyst.ui.screen.FeedViewModel
|
import com.vitorpamplona.amethyst.ui.screen.FeedViewModel
|
||||||
import com.vitorpamplona.amethyst.ui.screen.LoadingFeed
|
import com.vitorpamplona.amethyst.ui.screen.LoadingFeed
|
||||||
import com.vitorpamplona.amethyst.ui.screen.NostrVideoFeedViewModel
|
import com.vitorpamplona.amethyst.ui.screen.NostrVideoFeedViewModel
|
||||||
|
import com.vitorpamplona.amethyst.ui.screen.RefresheableView
|
||||||
import com.vitorpamplona.amethyst.ui.screen.ScrollStateKeys
|
import com.vitorpamplona.amethyst.ui.screen.ScrollStateKeys
|
||||||
import com.vitorpamplona.amethyst.ui.screen.rememberForeverPagerState
|
import com.vitorpamplona.amethyst.ui.screen.rememberForeverPagerState
|
||||||
import com.vitorpamplona.amethyst.ui.theme.Size35dp
|
import com.vitorpamplona.amethyst.ui.theme.Size35dp
|
||||||
@@ -206,6 +207,7 @@ private fun LoadedState(
|
|||||||
|
|
||||||
WatchScrollToTop(videoFeedView, pagerState)
|
WatchScrollToTop(videoFeedView, pagerState)
|
||||||
|
|
||||||
|
RefresheableView(viewModel = videoFeedView) {
|
||||||
SlidingCarousel(
|
SlidingCarousel(
|
||||||
state.feed,
|
state.feed,
|
||||||
pagerState,
|
pagerState,
|
||||||
@@ -213,6 +215,7 @@ private fun LoadedState(
|
|||||||
nav
|
nav
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@OptIn(ExperimentalFoundationApi::class)
|
@OptIn(ExperimentalFoundationApi::class)
|
||||||
@Composable
|
@Composable
|
||||||
|
Reference in New Issue
Block a user