sheetStateForPreview does not need to be annotated with @Composable
This commit is contained in:
-2
@@ -11,10 +11,8 @@ package io.element.android.libraries.designsystem.preview
|
||||
import androidx.compose.material3.ExperimentalMaterial3Api
|
||||
import androidx.compose.material3.SheetState
|
||||
import androidx.compose.material3.SheetValue
|
||||
import androidx.compose.runtime.Composable
|
||||
|
||||
@OptIn(ExperimentalMaterial3Api::class)
|
||||
@Composable
|
||||
fun sheetStateForPreview() = SheetState(
|
||||
enabledValues = setOf(SheetValue.Hidden, SheetValue.Expanded),
|
||||
positionalThreshold = { 0.5f },
|
||||
|
||||
Reference in New Issue
Block a user