refactor: use LocalAreaBoxShape for default shape in AreaBox

This commit is contained in:
2023-12-03 01:09:16 +08:00
parent 73651da66d
commit f7012d5db1

View File

@@ -182,7 +182,7 @@ internal fun withAreaBoxShape(
@ReadOnlyComposable @ReadOnlyComposable
private fun defaultAreaBoxStyle() = AreaBoxStyle( private fun defaultAreaBoxStyle() = AreaBoxStyle(
padding = PaddingValues(LocalSizes.current.spacingPrimary), padding = PaddingValues(LocalSizes.current.spacingPrimary),
shape = LocalShapes.current.primary, shape = LocalAreaBoxShape.current,
border = defaultAreaBoxBorder(), border = defaultAreaBoxBorder(),
shadowSize = DefaultAreaBoxShadowSize shadowSize = DefaultAreaBoxShadowSize
) )