Skip to content
pubscout

camera_camera

3.0.0, released 3 years ago by gabul.dev

Drop-in camera UI widget for taking photos with zoom, flash, and camera switching.

$ flutter pub add camera_camera
Source repository

What it does

Provides a ready-to-use camera widget wrapped around the official camera plugin. It manages the preview, zoom, flash mode, and switching camera sides, returning the captured image file via a callback. Developers can embed it directly into a widget tree or open it in a modal route.

AI-written summary of version 3.0.0, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need a quick, turnkey camera screen to take photos without building custom camera preview and control UI.
  • You want simple file callbacks for captured photos on Android and iOS.

Skip it when

  • You need extensive customization of the camera UI and layout.
  • You need video recording or exposure control (not yet supported according to roadmap).
  • You need advanced barcode scanning or MLKit integration.

Strengths

  • Simple declarative usage via a single CameraCamera widget.
  • Built-in support for flash control, zoom, and toggling front/back cameras.
  • Returns captured images directly via an onFile callback.

Weaknesses

  • Lacks custom layout support and advanced camera controls like manual exposure.
  • Platform support in pubspec metadata is limited to Android and iOS despite beta web support notes.

Setup

Kind
Flutter widgets
Effort
Medium
Code generation
No
Direct dependencies
2

Requires setting minSdkVersion 21 in Android build.gradle, and NSCameraUsageDescription and NSMicrophoneUsageDescription keys in iOS Info.plist.

CameraCamera(
  onFile: (file) {
    print(file);
    Navigator.pop(context);
  },
)

Alternatives

Packages that do the same job and could replace camera_camera.

Works with

Packages commonly used together with camera_camera: ones it builds on, ones built on it, and its own family.