fix: button content not in center

This commit is contained in:
2024-01-03 03:25:41 +08:00
parent 0738a2eaa5
commit 06bc8b6fba

View File

@@ -98,7 +98,8 @@ fun Button(
role = Role.Button,
interactionSource = interactionSource,
onClick = onClick
)
),
contentAlignment = Alignment.Center
) {
CompositionLocalProvider(
LocalIconStyle provides LocalIconStyle.current.copy(tint = colors.contentColor),