πΈ camera_sdk_faizan
A lightweight Flutter SDK for capturing photos and videos using the device camera.
It provides an easy-to-use API and handles camera initialization, preview, and media saving out of the box.
π Features
- π· Capture high-quality photos
- π₯ Record and save videos
- π Live camera preview widget
- πΎ Automatically saves captured files to device storage
- π§± Simple integration with minimal setup
π§© Installation
Add this to your pubspec.yaml file:
π§© Basic Setup
Step 1: Initialization
final CameraSDKController _camera = CameraSDKController();
@override
void initState() {
super.initState();
_initCamera();
}
Future<void> _initCamera() async {
await _camera.initialize();
setState(() => _ready = true);
}
Step 2: Take Photo and videos
await _camera.takePhoto();
await _camera.startVideoRecording();
await _camera.stopVideoRecording();
dependencies:
camera_sdk_faizan: ^0.0.1