Samir Basnet
03/31/2021, 9:27 AMSamir Basnet
03/31/2021, 9:34 AMModifier.graphicsLayer {
scrolledY += scrollState.firstVisibleItemScrollOffset - previousOffset
translationY = scrolledY * 0.3f
previousOffset = scrollState.firstVisibleItemScrollOffset
}
Above is the code where scrollState is scrollState of lazy list , scrolledY and previousOffset are both gloabally initialized as 0 and the main part is the content/header that has parallax effect is kept inside item eg. item { Header() } of that lazy list. if anyone knows how to do it without including that header inside item{} of lazy list but rather inidividually then please do share the code.subashz
03/31/2021, 10:01 AMLukas Sztefek
03/31/2021, 10:02 AMsubashz
03/31/2021, 10:44 AMSamir Basnet
03/31/2021, 10:54 AMSamir Basnet
03/31/2021, 1:16 PMnglauber
04/24/2021, 11:44 PMGeert
07/30/2021, 7:49 AMfilipegoncalves
09/15/2022, 11:49 PM