Gallery: display demos use the shell's code card

This commit is contained in:
ZacharyZhang-NY committed 2026-10-05 13:04:01 -04:00
1 parent bb5828da96
commit 0e64ec3afd
3 files changed
-22

No files matched your search

-2
View File
@@ -59,7 +59,6 @@ func imageDemo(c *ui.Context, log func(string)) {
}
})
})
displayCode(c, imageCode, log)
}
const imageCode = `img := mujica.Image(c, photo, mujica.ImageOptions{
@@ -111,7 +110,6 @@ func avatarDemo(c *ui.Context, log func(string)) {
mujica.Avatar(c, "", mujica.AvatarOptions{Size: 40})
})
})
displayCode(c, avatarCode, log)
}
const avatarCode = `ui.Row(c).Gap(8).Children(func() {