camerakit
0.1.1, released 2 years ago by abomis.com
Native Android and iOS camera wrapper for taking pictures and scanning barcodes.
What it does
Provides camera preview, picture capturing, and barcode scanning capabilities utilizing native Camera2 API, AVFoundation, and MLFirebase. Includes an easy-to-use controller for flash control, pausing, and resuming.
AI-written summary of version 0.1.1, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need a quick solution to capture photos and scan barcodes within a Flutter app.
- You want automatic camera permission and resource handling without third-party plugins.
Skip it when
- You need advanced custom camera pipeline manipulation or complex video recording features.
- You prefer pure Dart implementations without native view embeddings.
Strengths
- Automatic permission and camera resource lifecycle management
- Supports both picture taking and barcode scanning
- Configurable scale types (fill and fit) and flash modes
Weaknesses
- Limited documentation regarding custom error handling
- Specific native API settings (like API_X vs API_2) have distinct feature trade-offs
Setup
- Kind
- Plugin (native code)
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 1
iOS requires adding io.flutter.embedded_views_preview and Privacy - Camera Usage Description in info.plist.
cameraKitController = CameraKitController();
cameraKitView = CameraKitView(
cameraKitController: cameraKitController,
hasBarcodeReader: true,
barcodeFormat: BarcodeFormats.FORMAT_ALL_FORMATS,
scaleType: ScaleTypeMode.fill,
previewFlashMode: CameraFlashMode.auto,
androidCameraMode: AndroidCameraMode.API_X,
cameraSelector: CameraSelector.back,
onPermissionDenied: () {},
onBarcodeRead: (code) {},
);Alternatives
Packages that do the same job and could replace camerakit.
- mobile_scanner
A well-maintained dedicated alternative specifically focused on fast barcode and QR code scanning.
95Compare - camera
The official camera plugin providing deeper control over the device camera preview, image streams, and recording.
95Compare
Works with
Packages commonly used together with camerakit: ones it builds on, ones built on it, and its own family.