camera_location_picker 0.0.3 copy "camera_location_picker: ^0.0.3" to clipboard
camera_location_picker: ^0.0.3 copied to clipboard

A Flutter plugin for capturing camera images with location overlay.

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 #

  • camera
  • geolocator
  • geocoding
  • permission_handler
  • screenshot
  • path_provider
  • responsive_sizer

πŸ“„ License #

MIT License. See LICENSE for details.


πŸ‘¨β€πŸ’» Author #

Developed by GIPL


⭐ If you like this plugin, give it a star on pub.dev!