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, role = Role.Button,
interactionSource = interactionSource, interactionSource = interactionSource,
onClick = onClick onClick = onClick
) ),
contentAlignment = Alignment.Center
) { ) {
CompositionLocalProvider( CompositionLocalProvider(
LocalIconStyle provides LocalIconStyle.current.copy(tint = colors.contentColor), LocalIconStyle provides LocalIconStyle.current.copy(tint = colors.contentColor),