Inspiration

Inspired by the fact that different people have different favorite cartoon characters. So why not build an app to show what cartoon might be their favorite.

What it does

This app takes picture of the user and then displays a cartoon based on a random number.

How we built it

I started by first figuring out a way to show user camera preview, then I moved on to generate a random number whenever the user taps the capture button. After that when a random number is generated, then I implemented a way to display the corresponding cartoon character on top of the camera preview.

Challenges we ran into

I had to choose from a lot of plugins to show camera preview. After the preview was visible in the app, there were still some gaps on the screen, so I stretched the camera preview a little bit to fill those voids. Finally, when the images were showing on top of the preview, they were very big, and the sizes were varying. So, I wrapped the image inside a container, to make it look more equal.

What we learned

I learned a lot of things, like the ways to implement stacks, ways to constraint an image's height and width, and a lot more things about the cartoons, and remembered all of them.

Built With

Share this project:

Updates