Shot icon indicating copy to clipboard operation
Shot copied to clipboard

Removing the Toolbar shadow (elevation)

Open ivannarino opened this issue 1 year ago • 1 comments

Expected behaviour

When doing screenshots of composables, the screenshot should not have display the shadow of the Toolbar

Actual behaviour

When doing screenshots of composables there is gradient (shadow) at the top of the image. image

Steps to reproduce

  • Create an compose snapshot test
@get:org.junit.Rule
val composeRule = androidx.compose.ui.test.junit4.createComposeRule()

@org.junit.Test
fun testContent() {
    composeRule.setContent { $PREVIEW_NAME$() }
    compareScreenshot(composeRule)
}
  • Record the screenshots

  • Open the screenshots

Version of the library

5.14.1

Using emulator with Android 32

ivannarino avatar Dec 30 '22 10:12 ivannarino