Elevate Compose UI: Create Stunning Shadow with Modifier
From Blah to Beautiful: Tailoring Jetpack Compose Shadows Your Way!
TLDR;
I don’t find a good solution with the default Modifier.shadow Jetpack Compose provided, so I write one for myself.
This approach is drawing another rect behind the main, and then trying to blur it with the BlurMaskFilter (check the code)
Github: https://github.com/dantech0xff/compose-shadow-kotlin-ext
Happy Coding!!