The camera feature is present in many apps, and integrating with it can be done in few ways. We could, for example, implement the code on our own, but thanks to the community, Flutter provides multiple plugins to access the camera. Some of the most well-known plugins are as follows:
- camera: With this plugin, we can display the camera preview directly on Flutter, take photos, or record video.
- image_picker: This plugin tries to simplify the task a lot; we only ask it to give us a photo from the camera or gallery, and it takes care of the rest.
If you remember, in Chapter 8, Firebase Plugins, we managed to send a user profile picture to Firebase Storage, and we have used the image_picker plugin to get an image file from the camera. So, let's review how this works in detail.