mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-03 06:55:41 +00:00
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.ExperimentalMaterial3Api
|
||||||
import androidx.compose.material3.SheetState
|
import androidx.compose.material3.SheetState
|
||||||
import androidx.compose.material3.SheetValue
|
import androidx.compose.material3.SheetValue
|
||||||
import androidx.compose.runtime.Composable
|
|
||||||
|
|
||||||
@OptIn(ExperimentalMaterial3Api::class)
|
@OptIn(ExperimentalMaterial3Api::class)
|
||||||
@Composable
|
|
||||||
fun sheetStateForPreview() = SheetState(
|
fun sheetStateForPreview() = SheetState(
|
||||||
enabledValues = setOf(SheetValue.Hidden, SheetValue.Expanded),
|
enabledValues = setOf(SheetValue.Hidden, SheetValue.Expanded),
|
||||||
positionalThreshold = { 0.5f },
|
positionalThreshold = { 0.5f },
|
||||||
|
|||||||
Reference in New Issue
Block a user