How do you make a gallery app?

I recently started to make a simple gallery app, the problem is that I don’t know how to make your device images appear in the gallery, so could you send me, code images, videos and tutorials in links for me to learn, I would appreciate it

Show your blocks, so what you have already tried.