@@ -32,6 +32,9 @@ import androidx.compose.ui.unit.sp
3232import de.berlindroid.zepatch.R
3333import de.berlindroid.zepatch.annotations.Patch
3434import de.berlindroid.zepatch.ui.SafeArea
35+ import dev.nstv.composablesheep.library.ComposableSheep
36+ import dev.nstv.composablesheep.library.model.Sheep
37+ import dev.nstv.composablesheep.library.util.SheepColor
3538
3639@OptIn(ExperimentalMaterial3Api ::class )
3740@Patch(" AppLogo" )
@@ -72,6 +75,25 @@ fun BerlindroidLogo(
7275 }
7376}
7477
78+ @OptIn(ExperimentalMaterial3Api ::class )
79+ @Patch(" FourOfThem" )
80+ @Composable
81+ fun FourOfThemLogo (
82+ shouldCapture : Boolean = false,
83+ onBitmap : (ImageBitmap ) -> Unit = {},
84+ ) {
85+ SafeArea (
86+ shouldCapture = shouldCapture,
87+ onBitmap = onBitmap,
88+ ) {
89+ Image (
90+ modifier = Modifier .size(200 .dp),
91+ painter = painterResource(R .drawable.four_of_them),
92+ contentDescription = null
93+ )
94+ }
95+ }
96+
7597
7698@OptIn(ExperimentalMaterial3Api ::class )
7799@Patch(" GoogleLogo" )
@@ -298,3 +320,40 @@ fun PreviewBerlindroid() {
298320private fun BlueworldLogoPreview () {
299321 BlueworldLogo ()
300322}
323+
324+ @Patch(" Composable Sheep" )
325+ @Composable
326+ fun ComposableSheepPatchable (
327+ shouldCapture : Boolean = false, // used to activate the convert to bitmap
328+ onBitmap : (ImageBitmap ) -> Unit = {}, // used to return the bitmap from the SafeArea
329+ ) {
330+ SafeArea (
331+ shouldCapture = shouldCapture,
332+ onBitmap = onBitmap,
333+ ) {
334+ ComposableSheep (
335+ sheep = Sheep (fluffColor = SheepColor .Green ),
336+ modifier = Modifier .size(300 .dp),
337+ )
338+ }
339+ }
340+
341+ @Preview
342+ @Patch(" ZeWednesday" )
343+ @Composable
344+ fun ZeWednesday (
345+ shouldCapture : Boolean = false, // used to activate the convert to bitmap
346+ onBitmap : (ImageBitmap ) -> Unit = {}, // used to return the bitmap from the SafeArea
347+ ) {
348+ SafeArea (
349+ shouldCapture = shouldCapture,
350+ onBitmap = onBitmap,
351+ ) {
352+ Image (
353+ modifier = Modifier .size(200 .dp),
354+ painter = painterResource(R .drawable.ze_frog),
355+ contentDescription = null
356+ )
357+ }
358+ }
359+
0 commit comments