From 5ad495c8381edaea141f7b102051b2df43aee0da Mon Sep 17 00:00:00 2001 From: oxy Date: Mon, 18 Nov 2024 02:22:55 +0800 Subject: [PATCH] 1.14.1/overscroll (#211) * feat: overscroll effect. * fix: remove unused import directive. * fix: overscroll effect. * fix: remove unused import directive. --- androidApp/src/main/java/com/m3u/androidApp/ui/Scaffold.kt | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/androidApp/src/main/java/com/m3u/androidApp/ui/Scaffold.kt b/androidApp/src/main/java/com/m3u/androidApp/ui/Scaffold.kt index 778fc29e..c336919f 100644 --- a/androidApp/src/main/java/com/m3u/androidApp/ui/Scaffold.kt +++ b/androidApp/src/main/java/com/m3u/androidApp/ui/Scaffold.kt @@ -53,7 +53,7 @@ import com.m3u.material.model.LocalHazeState import com.m3u.material.model.LocalSpacing import com.m3u.material.overscroll.OverScroll import com.m3u.material.overscroll.overScrollAlpha -import com.m3u.material.overscroll.overScrollHeader +import com.m3u.material.overscroll.overScrollParallaxVertical import com.m3u.ui.Destination import com.m3u.ui.FontFamilies import com.m3u.ui.helper.Fob @@ -214,9 +214,7 @@ internal fun MainContent( modifier = Modifier .hazeChild(hazeState, style = HazeStyle(blurRadius = 6.dp)) .fillMaxWidth() - .overScrollHeader( - headerHeight = with(density) { 82.dp.toPx() } - ) + .overScrollParallaxVertical(maxParallaxOffset = -40f) .overScrollAlpha( finalAlpha = 0.35f )