feat(component): 为开关设置项添加边距
This commit is contained in:
parent
0c566aa7e1
commit
f0c894e8af
1 changed files with 4 additions and 1 deletions
|
|
@ -1,11 +1,13 @@
|
|||
package cn.super12138.todo.ui.pages.settings.components
|
||||
|
||||
import androidx.compose.foundation.layout.padding
|
||||
import androidx.compose.material3.Switch
|
||||
import androidx.compose.runtime.Composable
|
||||
import androidx.compose.runtime.getValue
|
||||
import androidx.compose.runtime.setValue
|
||||
import androidx.compose.ui.Modifier
|
||||
import androidx.compose.ui.graphics.vector.ImageVector
|
||||
import androidx.compose.ui.unit.dp
|
||||
import cn.super12138.todo.ui.pages.settings.state.rememberPrefBooleanState
|
||||
|
||||
@Composable
|
||||
|
|
@ -29,7 +31,8 @@ fun SwitchSettingsItem(
|
|||
onCheckedChange = {
|
||||
switchState = it
|
||||
onCheckedChange(it)
|
||||
}
|
||||
},
|
||||
modifier = Modifier.padding(start = 14.dp)
|
||||
)
|
||||
},
|
||||
onClick = {
|
||||
|
|
|
|||
Loading…
Reference in a new issue