这个Shadow功能有什么用 https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Shadow
Shadow(color: Color, offset: Offset, blurRadius: Float)
答案 0 :(得分:0)
用于对文本应用阴影,简单示例:
Text(
"Hello",
style = LocalTextStyle.current.copy(
shadow = Shadow(
color = Color.Blue,
offset = Offset(10f, 10f),
blurRadius = 10f,
)
)
)