Fix warning: Composable functions should only be emitting content into the composition from one source at their top level.

This commit is contained in:
Benoit Marty 2023-10-26 17:49:13 +02:00
parent ea9c7f5b10
commit bf5047647a

View file

@ -20,6 +20,7 @@ import androidx.compose.foundation.BorderStroke
import androidx.compose.foundation.interaction.MutableInteractionSource
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Column
import androidx.compose.foundation.layout.ColumnScope
import androidx.compose.foundation.layout.IntrinsicSize
import androidx.compose.foundation.layout.PaddingValues
import androidx.compose.foundation.layout.Row
@ -379,7 +380,7 @@ private fun ButtonCombinationPreview(
}
@Composable
private fun ButtonMatrixPreview(
private fun ColumnScope.ButtonMatrixPreview(
style: ButtonStyle,
size: ButtonSize,
destructive: Boolean,