Merge pull request #1795 from FunkyMuse/master

fix: center preference vertical arrangement
This commit is contained in:
Tibor Kaputa 2023-08-23 10:22:10 +02:00 committed by GitHub
commit c8d0fbfd57
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 5 deletions

View file

@ -4,10 +4,7 @@ import androidx.compose.animation.AnimatedVisibility
import androidx.compose.foundation.LocalIndication
import androidx.compose.foundation.clickable
import androidx.compose.foundation.interaction.MutableInteractionSource
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.padding
import androidx.compose.foundation.layout.*
import androidx.compose.material.ripple.LocalRippleTheme
import androidx.compose.material3.*
import androidx.compose.runtime.Composable
@ -53,7 +50,8 @@ fun SettingsCheckBoxComponent(
.padding(horizontal = 16.dp, vertical = 6.dp),
) {
Column(
modifier = Modifier.weight(1f)
modifier = Modifier.weight(1f),
verticalArrangement = Arrangement.Center
) {
Text(
modifier = Modifier

View file

@ -2,6 +2,7 @@ package com.simplemobiletools.commons.compose.settings
import androidx.compose.animation.AnimatedVisibility
import androidx.compose.foundation.combinedClickable
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.foundation.layout.padding
@ -39,6 +40,7 @@ fun SettingsPreferenceComponent(
)
.padding(horizontal = 16.dp, vertical = 8.dp)
.then(modifier),
verticalArrangement = Arrangement.Center
) {
Text(
text = preferenceTitle,