camera_flutter library
Flutter integration for the camera_dart package.
This package contributes the native camera_cli library to your Flutter
app (built automatically via cargokit) and re-exports the full
camera_dart API. In most cases you only need the re-exported
CameraControl entry point:
import 'package:camera_flutter/camera_flutter.dart';
await CameraControlFlutter.ensureInitialized();
final cameras = await CameraControl.enumerate();
Classes
- Camera
- An open camera.
- CameraBackend
- Contract every camera backend implements.
- CameraBackendRegistry
- Registry of available CameraBackends.
- CameraControl
- Entry point for camera access.
- CameraControlFlutter
-
Flutter-side conveniences over the
camera_dartregistry. - CameraDevice
- A camera the host exposes.
- CameraFormat
- A capture format a device supports: resolution, pixel format, frame rate.
- Frame
- One captured frame.
Enums
- CameraFacing
- Which way a camera points, when the platform reports it.
- PixelFormat
- Pixel layout of captured frame bytes.
Exceptions / Errors
- CameraException
- Base class for all camera errors.
- CaptureException
- Thrown when capturing a frame fails.
- DeviceException
- Thrown when a requested device cannot be found or opened.
- NoBackendException
- Thrown when no backend can handle the request.