We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 28acfe9 commit 525179fCopy full SHA for 525179f
fragula-compose/src/main/kotlin/com/fragula2/compose/FragulaNavHost.kt
@@ -399,10 +399,14 @@ private fun PageElevation(
399
}
400
},
401
) {
402
+ val colors = listOf(ElevationEnd, ElevationStart)
403
+ val brush = if(swipeDirection.isHorizontal()) Brush.horizontalGradient(
404
+ colors = colors,
405
+ ) else Brush.verticalGradient(
406
407
+ )
408
drawRect(
- brush = Brush.horizontalGradient(
- colors = listOf(ElevationEnd, ElevationStart),
- ),
409
+ brush = brush,
410
)
411
412
0 commit comments