camera_location_picker π·π
A Flutter plugin that provides a custom camera screen with live location, address, timestamp overlay, and returns the final captured image as a file.
This plugin is Dart-first, works on Android & iOS, and handles:
- Camera
- Location
- Microphone permissions
- Image preview & confirmation
β¨ Features
- π· Capture image using device camera
- π Auto-fetch GPS location (latitude & longitude)
- πΊοΈ Address from coordinates (reverse geocoding)
- π Timestamp overlay on image
- πΌοΈ Image preview screen before confirmation
- π Permission handling (Camera, Location, Microphone)
- π± Fully customizable UI (Flutter widgets)
π¦ Installation
Add this to your pubspec.yaml:
dependencies:
camera_location_picker: ^0.0.1
Then run:
flutter pub get
βοΈ Platform Setup
β Android
Add permissions in android/app/src/main/AndroidManifest.xml:
<uses-permission android:name="android.permission.CAMERA"/>
<uses-permission android:name="android.permission.RECORD_AUDIO"/>
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION"/>
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION"/>
β iOS
Add permissions in ios/Runner/Info.plist:
<key>NSCameraUsageDescription</key>
<string>Camera access is required to capture photos.</string>
<key>NSMicrophoneUsageDescription</key>
<string>Microphone access is required for video recording.</string>
<key>NSLocationWhenInUseUsageDescription</key>
<string>Location access is required to tag photos.</string>
π Usage
import 'package:camera_location_picker/camera_location_picker.dart';
Navigator.push(
context,
MaterialPageRoute(
builder: (_) => CustomCameraScreen(
onImageCaptured: (file) {
print("Captured image path: ${file.path}");
},
),
),
);
πΈ Output
-
Final image with:
- Camera photo
- Latitude & longitude
- Address
- Timestamp
- Map tile preview
π§ͺ Example
Check the /example folder for a complete demo app.
π Dependencies Used
camerageolocatorgeocodingpermission_handlerscreenshotpath_providerresponsive_sizer
π License
MIT License. See LICENSE for details.
π¨βπ» Author
Developed by GIPL
β If you like this plugin, give it a star on pub.dev!