camera_android_camerax
0.7.6+1, released 3 weeks ago by flutter.dev
Android camera implementation using CameraX library
What it does
Provides camera preview, image capture, video recording, and advanced features like zero‑shutter‑lag for Android apps. It is an implementation of the core camera plugin that uses CameraX under the hood.
AI-written summary of version 0.7.6+1, based on the package's README and metadata. Report an inaccuracy
Use it when
- Building an Android app that requires camera preview and image/video capture
- Need zero‑shutter‑lag still image capture
- Want custom video output path or persistent recording
Skip it when
- Targeting iOS, web, or desktop platforms
- Using the generic camera plugin without Android‑specific features
Strengths
- Uses CameraX for modern Android camera APIs
- Supports zero‑shutter‑lag and persistent recording
- Allows custom video output paths
- Endorsed by Flutter, automatically included when using camera
Weaknesses
- Android‑only implementation
- Some limitations: 240p video fallback, streamOptions ignored
- Requires WRITE_EXTERNAL_STORAGE permission for older Android versions
Setup
- Kind
- Plugin (native code)
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 4
No additional setup beyond adding the dependency; permissions are handled automatically, but you may need to add READ_EXTERNAL_STORAGE removal if desired.
```dart
import 'package:camera_android_camerax/camera_android_camerax.dart';
final controller = CameraController(
cameraDescription,
ResolutionPreset.high,
);
await controller.initialize();
```Alternatives
Packages that do the same job and could replace camera_android_camerax.
- qrscan
One-shot Flutter QR and barcode scanner using native camera APIs.
67Compare - mobile_scanner
Universal Flutter barcode and QR code scanner using native ML Kit, Vision, and ZXing.
95Compare - barcode_scan2
A flutter plugin for scanning 2D barcodes and QRCodes via camera.
93Compare - cunning_document_scanner
Scan paper documents and convert them to images or PDFs with auto-cropping.
92Compare
Works with
Packages commonly used together with camera_android_camerax: ones it builds on, ones built on it, and its own family.
- asynccamera_android_camerax depends on itUtility classes and helpers that extend Dart's async library.
- stream_transformcamera_android_camerax depends on itExtension methods adding common stream transform operators
- camera_avfoundationSame familyiOS implementation of the Flutter camera plugin providing preview, photo, and video capture.
- camera_webSame familyWeb platform implementation for the Flutter camera plugin.
- camera_androidSame familyAndroid implementation of the camera plugin using the Camera2 library.
- camera_windowsSame familyWindows implementation of the camera plugin for getting info and controlling cameras
- cameraBuilt on camera_android_cameraxFlutter plugin to preview, capture photos/video and stream camera images.
- qr_code_dart_scanBuilt on camera_android_cameraxFlutter widget for live or picture‑based QR code scanning using a pure‑Dart decoder.