Djuro
03/16/2024, 1:57 PMPullToRefreshContainer work with swipe in compose multiplatform.
I can't get it to start refreshing when there is swipe down (that was behaviour I would expect for it, like in Android)
Code is in the threadDjuro
03/16/2024, 1:57 PMfun App(rootComponent: RootComponent) {
LunchBreakTheme {
val state = rememberPullToRefreshState()
Box (modifier= Modifier.fillMaxSize().background(color= Color.Green).nestedScroll(state.nestedScrollConnection)){
PullToRefreshContainer(state = state)
}
}
It just doesn't work, its state is not automatically changing on swipeDjuro
03/16/2024, 2:03 PMDjuro
03/16/2024, 2:04 PMverticalScroll to the Box component but honestly I really don't like thisDjuro
03/16/2024, 2:05 PMavdim88
03/18/2024, 7:13 PMverticalScroll ?Djuro
03/18/2024, 7:16 PMfun App(rootComponent: RootComponent) {
LunchBreakTheme {
val state = rememberPullToRefreshState()
Box (modifier= Modifier.fillMaxSize().background(color= Color.Green).verticalScroll(state=rememberScrollState()).nestedScroll(state.nestedScrollConnection)){
PullToRefreshContainer(state = state)
}
}Djuro
03/18/2024, 7:17 PMModifieravdim88
03/18/2024, 7:19 PMDjuro
03/19/2024, 8:32 AMPullToRefreshIndicator in material3, I would be happier with having something like Material.pullRefresh() like it was the case with material