From 06bc8b6fba087da305e45ad3757c2a32d0a7febc Mon Sep 17 00:00:00 2001 From: fankesyooni Date: Wed, 3 Jan 2024 03:25:41 +0800 Subject: [PATCH] fix: button content not in center --- .../kotlin/com/highcapable/flexiui/component/Button.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/flexiui-core/src/commonMain/kotlin/com/highcapable/flexiui/component/Button.kt b/flexiui-core/src/commonMain/kotlin/com/highcapable/flexiui/component/Button.kt index c813c7d..f8e8be6 100644 --- a/flexiui-core/src/commonMain/kotlin/com/highcapable/flexiui/component/Button.kt +++ b/flexiui-core/src/commonMain/kotlin/com/highcapable/flexiui/component/Button.kt @@ -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),