Skip to content
pubscout

camera_android

0.10.13, released 10 days ago by flutter.dev

Android implementation of the camera plugin using the Camera2 library.

WASM-ready
$ flutter pub add camera_android
Source repository

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_android

Alternatives

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.

Works with

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