Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SwipeRefresh as a child doesn't expand #63

Open
TepesLucian opened this issue Sep 1, 2022 · 2 comments
Open

SwipeRefresh as a child doesn't expand #63

TepesLucian opened this issue Sep 1, 2022 · 2 comments
Labels
bug Unexpected behavior or crash that disrupts library usage

Comments

@TepesLucian
Copy link

Not sure if it's an issue related to #18 but having SwipeRefresh as a child of the body blocks the toolbar from expanding. You can only expand the toolbar on a fling or when the SwipeRefresh is refreshing. View system components first expand the toolbar then activates Swiperefreshlayout pull gesture.

@onebone onebone added the bug Unexpected behavior or crash that disrupts library usage label Oct 16, 2022
@roberto-corchero-jt
Copy link

roberto-corchero-jt commented Aug 9, 2023

Hello! I have found a workaround, you can use the SwipeRefresh param swipeEnabled in combination with the scaffold toolbarState progress to fix this:

SwipeRefresh(
        swipeEnabled = scaffoldState.toolbarState.progress == 1f,
        state = refreshState,
        onRefresh = onRefresh,
        modifier = modifier,
)

@YohannesTz
Copy link

hello, any updates on this? I am using PullToRefreshBox and as @TepesLucian mentioned, it can only collapse. once it collapses, it can't expand back because PullToRefreshBox is blocking it. any workaround?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Unexpected behavior or crash that disrupts library usage
Projects
None yet
Development

No branches or pull requests

4 participants