paparazzi icon indicating copy to clipboard operation
paparazzi copied to clipboard

compose bottomsheet does not screenshot

Open rulogarcillan opened this issue 1 year ago • 3 comments

Description Take a screenshot of a bottomsheet Steps to Reproduce Add a bottomsheet in compose Expected behavior Get the screenshot of the modal

Problem The problem is that as a bottomshet to be displayed has an animation where it appears after a second, the screenshot obtained is a completely white screen

rulogarcillan avatar Jul 02 '23 12:07 rulogarcillan

@rulogarcillan thanks for the issue, however it's a bit sparse. can you please provide a repro? it's hard to know if this is a byproduct of how you set up the view or a true Paparazzi bug.

jrodbx avatar Jul 06 '23 23:07 jrodbx

Same here:

` class ModalBottomSheetTest : BaseScreenshotTest() {

@Test
fun testModalBottomSheet() {
    paparazzi.snapshot {
        ModalBottomSheetTestCase()
    }
}

@OptIn(ExperimentalMaterial3Api::class)
@Composable
private fun ModalBottomSheetTestCase() {
    ModalBottomSheet(
        onDismissRequest = {}
    ) {
        Text(text = "Content")
    }
}

} `

xavijimenezmulet avatar Mar 12 '24 10:03 xavijimenezmulet