Skip to content

Commit a1b280a

Browse files
authored
Merge branch 'main' into feature/serhii-hrabas
2 parents 5769497 + 4cf2874 commit a1b280a

2 files changed

Lines changed: 17 additions & 0 deletions

File tree

app/src/main/java/de/berlindroid/zepatch/patchable/Demo.kt

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -340,3 +340,20 @@ fun AndroidGradlePatchable() {
340340
AndroidGradleLogo()
341341
}
342342

343+
@Patch("ZeWednesday")
344+
@Composable
345+
fun ZeWednesday(
346+
shouldCapture: Boolean = false, // used to activate the convert to bitmap
347+
onBitmap: (ImageBitmap) -> Unit = {}, // used to return the bitmap from the SafeArea
348+
) {
349+
SafeArea(
350+
shouldCapture = shouldCapture,
351+
onBitmap = onBitmap,
352+
) {
353+
Image(
354+
modifier = Modifier.size(200.dp),
355+
painter = painterResource(R.drawable.ze_frog),
356+
contentDescription = null
357+
)
358+
}
359+
}
28.1 KB
Loading

0 commit comments

Comments
 (0)