There was an error while loading. Please reload this page.
2 parents 5769497 + 4cf2874 commit a1b280aCopy full SHA for a1b280a
2 files changed
app/src/main/java/de/berlindroid/zepatch/patchable/Demo.kt
@@ -340,3 +340,20 @@ fun AndroidGradlePatchable() {
340
AndroidGradleLogo()
341
}
342
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
+}
app/src/main/res/drawable/ze_frog.png
28.1 KB
0 commit comments