Shadow in Jetpack Compose

Solution for Shadow in Jetpack Compose
is Given Below:

What is the use of this Shadow function
https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Shadow

Shadow(color: Color, offset: Offset, blurRadius: Float)

It’s used for applying shadow to text, simple example:

Text(
    "Hello",
    style = LocalTextStyle.current.copy(
        shadow = Shadow(
            color = Color.Blue,
            offset = Offset(10f, 10f),
            blurRadius = 10f,
        )
    )
)