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

AlertDialog inside Scaffold fails to render #1107

Closed
apkelly opened this issue Sep 25, 2023 · 1 comment
Closed

AlertDialog inside Scaffold fails to render #1107

apkelly opened this issue Sep 25, 2023 · 1 comment
Labels
bug Something isn't working

Comments

@apkelly
Copy link

apkelly commented Sep 25, 2023

Description
If I place an AlertDialog inside a Scaffold it fails to render when capturing snapshots with Paparazzi. This setup renders correctly inside the Android Studio preview panel. Remove the Scaffold and the AlertDialog renders correctly.,

Steps to Reproduce

fun TestComposable() {
    MaterialTheme {
        Scaffold(
            backgroundColor = MaterialTheme.colors.background
        ) {
            AlertDialog(
                title = {
                    Text(
                        "Title"
                    )
                },
                text = {
                    Text(
                        "Body"
                    )
                },
                onDismissRequest = {

                },
                buttons = {

                }
            )
        }
    }
}

Expected behavior
I expect to see the dialog captured as part of the screenshot (see attachments).

Additional information:

  • Paparazzi Version: 1.3.1
  • Compose UI: 1.4.3
  • OS: Mac
  • Android Studio: Hedgehog
  • Compile SDK: 33
  • Gradle Version:
  • Android Gradle Plugin Version:

Screenshots
Android Studio Preview
android_studio_preview

Paparazzi output
paparazzi_failed_snapshot

@apkelly apkelly added the bug Something isn't working label Sep 25, 2023
@geoff-powell
Copy link
Collaborator

related to #1414, closing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants