Paul Woitaschek
06/04/2022, 12:06 PMChrimaeon
06/04/2022, 12:14 PMPaul Woitaschek
06/04/2022, 12:15 PMPaul Woitaschek
06/04/2022, 12:17 PMPaul Woitaschek
06/04/2022, 12:17 PM@get:Rule
val paparazzi = Paparazzi(
deviceConfig = DeviceConfig.PIXEL_4.copy(softButtons = false, screenHeight = 1),
renderingMode = SessionParams.RenderingMode.V_SCROLL
)
Paul Woitaschek
06/04/2022, 12:17 PMChrimaeon
06/04/2022, 4:57 PMclass ProfileScreenShould {
@get:Rule
val paparazzi = Paparazzi(
deviceConfig = DeviceConfig.PIXEL_5,
)
@Test
fun renderOnPixel5() {
paparazzi.snapshot {
ProfileScreen()
}
}
}
with this Composabe
@Composable
fun ProfileScreen() {
MaterialTheme {
Scaffold(
topBar = {
TopAppBar(
title = {
Text("Paparazzi")
}
)
}
) {
Box(
modifier = Modifier
.fillMaxSize()
.padding(it),
contentAlignment = Alignment.Center
) {
Text(
"Hello Paparazzi!",
style = MaterialTheme.typography.h3
)
}
}
}
}
and don’t see a status barPaul Woitaschek
06/04/2022, 4:57 PMChrimaeon
06/04/2022, 5:01 PM