Expose PreferenceCategory column scope
This commit is contained in:
parent
96bec0abd0
commit
1ed359f6cf
@ -1,9 +1,6 @@
|
||||
package de.mm20.launcher2.ui.component.preferences
|
||||
|
||||
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.MaterialTheme
|
||||
import androidx.compose.material.Surface
|
||||
import androidx.compose.material.Text
|
||||
@ -15,7 +12,7 @@ import androidx.compose.ui.unit.dp
|
||||
@Composable
|
||||
fun PreferenceCategory(
|
||||
title: String? = null,
|
||||
content: @Composable () -> Unit
|
||||
content: @Composable ColumnScope.() -> Unit
|
||||
) {
|
||||
Surface(
|
||||
elevation = 2.dp,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user