Migrate to M3 pull-to-refresh (#10164)

This commit is contained in:
Ivan Iskandar
2023-11-22 10:09:41 +07:00
committed by GitHub
parent 3006604922
commit d59cb9c1e3
7 changed files with 344 additions and 120 deletions

View File

@@ -73,7 +73,7 @@ fun ExtensionScreen(
PullRefresh(
refreshing = state.isRefreshing,
onRefresh = onRefresh,
enabled = !state.isLoading,
enabled = { !state.isLoading },
) {
when {
state.isLoading -> LoadingScreen(Modifier.padding(contentPadding))