camera_android
0.10.13, released 10 days ago by flutter.dev
Android implementation of the camera plugin using the Camera2 library.
What it does
Provides the Android-specific implementation for the Flutter camera plugin, allowing developers to interact with device cameras. It supports features like image streaming, JPEG quality control, and video recording via the Camera2 library.
AI-written summary of version 0.10.12, based on the package's README and metadata. Report an inaccuracy
Use it when
- You are building a Flutter application targeting Android that requires camera preview, image capture, or video recording.
- You are using the standard camera plugin and need to specify the Camera2-based implementation on Android.
Skip it when
- You are building for platforms other than Android.
- You prefer using the camera_android_camerax implementation instead of the Camera2 library version.
Strengths
- Built with the native Android Camera2 library.
- Supports custom video output paths and JPEG compression control.
Weaknesses
- Video recording via MediaRecorder does not work properly on emulators.
- Platform-specific implementation restricted to Android.
Setup
- Kind
- Plugin (native code)
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 4
Add to pubspec.yaml and use path_provider for safe video recording paths to avoid Scoped Storage restrictions.
flutter pub add camera_androidAlternatives
Packages that do the same job and could replace camera_android.
- mobile_scanner
If your primary use case is specifically scanning QR or barcodes rather than general camera control.
95Compare
Works with
Packages commonly used together with camera_android: ones it builds on, ones built on it, and its own family.
- stream_transformcamera_android depends on itExtension methods adding common stream transform operators
- flutter_plugin_android_lifecyclecamera_android depends on itFlutter plugin for accessing Android Lifecycle within other plugins.
- local_auth_androidSame familyAndroid implementation of the local_auth plugin for biometric authentication.
- google_maps_flutter_androidSame familyAndroid implementation of the google_maps_flutter plugin.
- cameraSame familyFlutter plugin to preview, capture photos/video and stream camera images.
- camera_android_cameraxSame familyAndroid camera implementation using CameraX library
- 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.