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.
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.
- camera_android
Android implementation of the camera plugin using the Camera2 library.
85Compare - camera_avfoundation
iOS implementation of the Flutter camera plugin providing preview, photo, and video capture.
84Compare - wechat_camera_picker
A camera picker for Flutter projects based on WeChat's UI.
79Compare - barcode_scan2
A flutter plugin for scanning 2D barcodes and QRCodes via camera.
93Compare
Works with
Packages commonly used together with camera_camera: ones it builds on, ones built on it, and its own family.