get_my_location 2.1.1 copy "get_my_location: ^2.1.1" to clipboard
get_my_location: ^2.1.1 copied to clipboard

A Flutter package to easily fetch and display device location with automatic permission handling. Perfect for apps needing quick GPS access with customizable UI states.

Get My Location ๐ŸŒ #

pub package

A Flutter widget that fetches and displays the user's current location with address lookup, loading and error states, and a refresh button.

โœจ Features #

  • ๐Ÿ“ Get latitude/longitude with accuracy
  • ๐Ÿ  Reverse geocoding for address lookup
  • โณ Builtโ€‘in loading and error UI
  • ๐Ÿ”„ Oneโ€‘tap refresh button

๐Ÿš€ Installation #

dependencies:
  get_my_location: ^2.0.3

๐Ÿงฉ Basic usage #

import 'package:flutter/material.dart';
import 'package:get_my_location/get_my_location.dart';

void main() => runApp(const MyApp());

class MyApp extends StatelessWidget {
  const MyApp({super.key});

  @override
  Widget build(BuildContext context) {
    return const MaterialApp(
      home: Scaffold(
        appBar: AppBar(title: Text('Get My Location')),
        body: Padding(
          padding: EdgeInsets.all(16),
          child: Center(
            child: LocationGetter(),
          ),
        ),
      ),
    );
  }
}
3
likes
140
points
70
downloads

Documentation

Documentation
API reference

Publisher

unverified uploader

Weekly Downloads

A Flutter package to easily fetch and display device location with automatic permission handling. Perfect for apps needing quick GPS access with customizable UI states.

Homepage
Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter, geocoding, geolocator, permission_handler, provider

More

Packages that depend on get_my_location