fix: itemPadding
Some checks failed
Build-Apk / build (push) Has been cancelled

This commit is contained in:
lisonge 2024-09-08 00:51:07 +08:00
parent aad9cb27d0
commit 9ee1bbb429

View File

@ -28,13 +28,7 @@ fun TextSwitch(
onCheckedChange: ((Boolean) -> Unit)? = null,
) {
Row(
modifier = modifier.let {
if (modifier == Modifier) {
it.itemPadding()
} else {
it.then(modifier)
}
},
modifier = modifier.itemPadding(),
verticalAlignment = Alignment.CenterVertically
) {
Column(modifier = Modifier.weight(1f)) {