This commit is contained in:
Syer10
2022-03-16 21:34:41 -04:00
parent 2ff962c6f2
commit a40383879e
30 changed files with 37 additions and 35 deletions

View File

@@ -33,6 +33,7 @@ internal actual fun RealDropdownMenu(
offset = offset,
content = content
)
@Composable
internal actual fun RealDropdownMenuItem(
onClick: () -> Unit,
@@ -66,4 +67,4 @@ fun SecureFlagPolicy.toAndroidSecureFlagPolicy() = when (this) {
SecureFlagPolicy.Inherit -> AndroidSecureFlagPolicy.Inherit
SecureFlagPolicy.SecureOn -> AndroidSecureFlagPolicy.SecureOn
SecureFlagPolicy.SecureOff -> AndroidSecureFlagPolicy.SecureOff
}
}

View File

@@ -15,4 +15,4 @@ import dev.icerock.moko.resources.FileResource
actual fun FileResource.rememberReadText(): String {
val context = LocalContext.current
return remember(context) { readText(context) }
}
}

View File

@@ -63,4 +63,4 @@ fun AroundLayout(
}
}
private enum class AroundLayoutContent { Start, MainContent, End }
private enum class AroundLayoutContent { Start, MainContent, End }

View File

@@ -34,6 +34,7 @@ enum class SecureFlagPolicy {
* policy.
*/
SecureOn,
/**
* No [WindowManager.LayoutParams.FLAG_SECURE] will be set on the window that is using this
* policy.
@@ -92,4 +93,4 @@ fun DropdownMenuItem(
contentPadding: PaddingValues = MenuDefaults.DropdownMenuItemContentPadding,
interactionSource: MutableInteractionSource = remember { MutableInteractionSource() },
content: @Composable RowScope.() -> Unit
) = RealDropdownMenuItem(onClick, modifier, enabled, contentPadding, interactionSource, content)
) = RealDropdownMenuItem(onClick, modifier, enabled, contentPadding, interactionSource, content)

View File

@@ -10,4 +10,4 @@ import androidx.compose.runtime.Composable
import dev.icerock.moko.resources.FileResource
@Composable
expect fun FileResource.rememberReadText(): String
expect fun FileResource.rememberReadText(): String

View File

@@ -16,4 +16,4 @@ expect class ContextWrapper {
enum class Length {
SHORT,
LONG
}
}

View File

@@ -30,6 +30,7 @@ internal actual fun RealDropdownMenu(
offset = offset,
content = content
)
@Composable
internal actual fun RealDropdownMenuItem(
onClick: () -> Unit,
@@ -45,4 +46,4 @@ internal actual fun RealDropdownMenuItem(
contentPadding = contentPadding,
interactionSource = interactionSource,
content = content
)
)

View File

@@ -11,4 +11,4 @@ import androidx.compose.runtime.remember
import dev.icerock.moko.resources.FileResource
@Composable
actual fun FileResource.rememberReadText(): String = remember { readText() }
actual fun FileResource.rememberReadText(): String = remember { readText() }