Skip to content
pubscout

camera_android_camerax

0.7.6+1, released 3 weeks ago by flutter.dev

Android camera implementation using CameraX library

$ flutter pub add camera_android_camerax
Source repository

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.

Works with

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