location_finder 0.0.1-dev.1 copy "location_finder: ^0.0.1-dev.1" to clipboard
location_finder: ^0.0.1-dev.1 copied to clipboard

A Flutter package to fetch current location with full address, city, state, and postal code, with proper permission handling.

location_finder

A Flutter package to fetch the current location with detailed address, city, state, and pincode information, including proper permission handling.

Features

✅ Fetch current location (latitude & longitude) ✅ Fetch complete address details ✅ Get city, state, and postal code ✅ Handles location permissions gracefully ✅ Easy integration into any Flutter project

Android	iOS

Support Android (SDK 21+) iOS (13.0+) Installation

Add the following line to your pubspec.yaml under dependencies:

dependencies: location_finder:0.0.1

Replace the path with your package location or pub.dev version once published.

Then run:

flutter pub get

Usage Import the package import 'package:location_finder/location_finder.dart';

Request location Future

Example Widget import 'package:flutter/material.dart'; import 'package:location_finder/location_finder.dart';

class HomePage extends StatefulWidget { const HomePage({super.key});

@override State

class _HomePageState extends State

Future

@override Widget build(BuildContext context) { return Scaffold( appBar: AppBar(title: const Text("Location Finder Example")), body: Center( child: Column( mainAxisAlignment: MainAxisAlignment.center, children: [ ElevatedButton( onPressed: _getLocation, child: const Text("Get Current Location"), ), const SizedBox(height: 20), if (_currentLocation != null) Text( _currentLocation.toString(), textAlign: TextAlign.center, ), ], ), ), ); } }

Sample Output:

Location fetched: Latitude: 30.3655391, Longitude: 78.0878324 Address: CPL 1 tower, Dehradun, Uttarakhand, India City: Dehradun, State: Uttarakhand, Pincode: 248013

📷 Screenshots

Add screenshots of your app showing location fetching or UI integration here.

Troubleshooting / FAQ

Ensure location permissions are granted on device.

Android: Add the following in AndroidManifest.xml:

2
likes
0
points
8
downloads

Publisher

unverified uploader

Weekly Downloads

A Flutter package to fetch current location with full address, city, state, and postal code, with proper permission handling.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter, geocoding, geolocator

More

Packages that depend on location_finder