camera_desktop
2.0.0, released 8 weeks ago by hugo.ml
Flutter camera plugin for Linux, macOS, and Windows desktop platforms.
What it does
Implements camera_platform_interface to provide desktop support for the standard camera package. Enables camera enumeration, live preview, photo capture, video recording, and image streaming on Linux, macOS, and Windows.
AI-written summary of version 2.0.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need camera preview, photo capture, or video recording in a Flutter desktop app.
- You want to use the standard camera package API across mobile and desktop platforms.
Skip it when
- You require mobile platforms (use the standard camera package instead).
- You need advanced mobile features like flash/torch control, exposure/focus point selection, or zoom beyond 1.0x.
Strengths
- Seamless integration with the standard camera package and CameraController API.
- Supports Linux, macOS, and Windows with native backends (GStreamer, AVFoundation, Media Foundation).
- Provides image streaming and custom FPS/bitrate controls.
Weaknesses
- Desktop cameras generally lack mobile features like flash, touch-to-focus, and zoom.
- Requires platform-specific library setup on Linux (GStreamer) and permission descriptions on macOS.
Setup
- Kind
- Plugin (native code)
- Effort
- Medium
- Code generation
- No
- Direct dependencies
- 3
Linux requires installing GStreamer development libraries. macOS requires adding camera and microphone usage descriptions to Info.plist and optionally entitlements for sandboxed apps.
import 'package:camera/camera.dart';
final cameras = await availableCameras();
final controller = CameraController(cameras.first, ResolutionPreset.high);
await controller.initialize();
CameraPreview(controller);Alternatives
Packages that do the same job and could replace camera_desktop.
- camera_android
Android implementation of the camera plugin using the Camera2 library.
85Compare - camera_avfoundation
iOS implementation of the Flutter camera plugin providing preview, photo, and video capture.
84Compare - camera_android_camerax
Android camera implementation using CameraX library
89Compare - document_camera_frame
Capture and crop document images with a customizable camera interface and edge detection.
74Compare
Works with
Packages commonly used together with camera_desktop: ones it builds on, ones built on it, and its own family.