Fix detekt issue.
This commit is contained in:
parent
bc88eb62c5
commit
d0401c0ebe
2 changed files with 9 additions and 2 deletions
|
|
@ -17,6 +17,7 @@
|
||||||
package io.element.android.libraries.designsystem.ruler
|
package io.element.android.libraries.designsystem.ruler
|
||||||
|
|
||||||
import androidx.compose.runtime.Composable
|
import androidx.compose.runtime.Composable
|
||||||
|
import androidx.compose.ui.Modifier
|
||||||
import androidx.compose.ui.layout.Layout
|
import androidx.compose.ui.layout.Layout
|
||||||
import androidx.compose.ui.tooling.preview.Preview
|
import androidx.compose.ui.tooling.preview.Preview
|
||||||
import androidx.compose.ui.unit.Dp
|
import androidx.compose.ui.unit.Dp
|
||||||
|
|
@ -31,11 +32,13 @@ import io.element.android.libraries.designsystem.theme.components.Text
|
||||||
*/
|
*/
|
||||||
@Composable
|
@Composable
|
||||||
fun WithRulers(
|
fun WithRulers(
|
||||||
|
modifier: Modifier = Modifier,
|
||||||
xRulersOffset: Dp = 0.dp,
|
xRulersOffset: Dp = 0.dp,
|
||||||
yRulersOffset: Dp = 0.dp,
|
yRulersOffset: Dp = 0.dp,
|
||||||
content: @Composable () -> Unit
|
content: @Composable () -> Unit
|
||||||
) {
|
) {
|
||||||
Layout(
|
Layout(
|
||||||
|
modifier = modifier,
|
||||||
content = {
|
content = {
|
||||||
content()
|
content()
|
||||||
VerticalRuler()
|
VerticalRuler()
|
||||||
|
|
|
||||||
|
|
@ -57,11 +57,15 @@ fun DropdownMenuItem(
|
||||||
}
|
}
|
||||||
|
|
||||||
@Composable
|
@Composable
|
||||||
fun DropdownMenuItemText(text: String) {
|
fun DropdownMenuItemText(
|
||||||
|
text: String,
|
||||||
|
modifier: Modifier = Modifier,
|
||||||
|
) {
|
||||||
Text(
|
Text(
|
||||||
text = text,
|
text = text,
|
||||||
color = ElementTheme.materialColors.primary,
|
color = ElementTheme.materialColors.primary,
|
||||||
style = ElementTheme.typography.fontBodyLgRegular
|
style = ElementTheme.typography.fontBodyLgRegular,
|
||||||
|
modifier = modifier,
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue