flutter

camera

path_provider

path

Tip:

For android, You must update minSdkVersion to 21 (or higher).

On iOS, lines below have to be added inside ios/Runner/Info.plist in order the access the camera and microphone.
      
<key>NSCameraUsageDescription</key>
<string>Explanation on why the camera access is needed.</string>
<key>NSMicrophoneUsageDescription</key>
<string>Explanation on why the microphone access is needed.</string>

2. Get a list of the available cameras

Next, get a list of available cameras using the camera plugin.

3. Create and initialize the CameraController