Skip to content
pubscout

flutter_lite_camera

0.2.4, released 3 weeks ago by yushulx.me

A cross-platform Flutter camera plugin with native previews and RGB frame capture.

WASM-ready
$ flutter pub add flutter_lite_camera
Source repository

What it does

Allows capturing camera frames in RGB888 format and rendering native camera previews across Windows, Linux, macOS, iOS, Android, and web. It provides APIs to list devices, open cameras, start and stop previews, capture individual frames, and manage resolutions.

AI-written summary of version 0.2.4, based on the package's README and metadata. Report an inaccuracy

Use it when

  • You need cross-platform camera preview and raw RGB888 frame capture.
  • You are building image processing or recognition SDK integrations such as barcode scanning.

Skip it when

  • You only need built-in high-level UI widgets for capturing photos or videos without accessing raw frame bytes.

Strengths

  • Supports all major platforms including desktop, mobile, and web.
  • Provides zero-copy previews on native platforms.
  • Captures uncompressed RGB888 frames on demand without interrupting the preview stream.

Weaknesses

  • Requires platform-specific configuration and permissions for camera access.
  • Web platform requires HTTPS or localhost to function properly.

Setup

Kind
Plugin (native code)
Effort
Medium
Code generation
No
Direct dependencies
2

Requires adding camera permissions for macOS (Entitlements), iOS (Info.plist), and Android (AndroidManifest.xml). Web requires HTTPS or localhost.

final camera = FlutterLiteCamera();
final devices = await camera.getDeviceList();
if (devices.isNotEmpty) {
  await camera.open(0);
  final int textureId = await camera.startPreview();
  final frame = await camera.captureFrame();
  final Uint8List rgb = frame['data'];
  await camera.stopPreview();
  await camera.release();
}

Alternatives

Packages that do the same job and could replace flutter_lite_camera.

Works with

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