Reduce allocations

This commit is contained in:
tarsin committed 2023-07-02 12:46:18 +08:00
1 parent a2d9113be2
commit 09b92cc709
1 file changed
+3 -1
@@ -80,7 +80,7 @@ private fun BaseRoundText(
Surface(
modifier = Modifier.padding(4.dp),
color = bgColor,
shape = RoundedCornerShape(64.dp),
shape = GalleryTagCorner,
) {
Text(
text = text,
@@ -90,3 +90,5 @@ private fun BaseRoundText(
)
}
}
private val GalleryTagCorner = RoundedCornerShape(64.dp)