camera_sdk_faizan 0.0.3
camera_sdk_faizan: ^0.0.3 copied to clipboard
A Flutter SDK for taking photos, recording videos, and saving data
📸 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