Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The Pdf viewer support fold devices #1205

Open
malaynagarro opened this issue Aug 20, 2024 · 0 comments
Open

The Pdf viewer support fold devices #1205

malaynagarro opened this issue Aug 20, 2024 · 0 comments

Comments

@malaynagarro
Copy link

fun PdfViewer(
    uri: Uri,
    modifier: Modifier = Modifier,
    onError: () -> Unit
) {
    AndroidView(
        factory = {
            PDFView(it, null).apply {
                fromUri(uri).onRender { _, _, _ ->
                    fitToWidth()
                }
                    .onError { onError() }
                    .load()
            }
        },
        modifier = modifier
    )
}```

the above works fine with the normal phone but it uses to create error on Samsung fold 5 devices and Samsung high ends phone like Samsung s23 ultra
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant