get_my_location 1.0.0 copy "get_my_location: ^1.0.0" to clipboard
get_my_location: ^1.0.0 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.

example/lib/main.dart

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

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

/// Demo app for [get_your_location] package.
class MyApp extends StatelessWidget {
  const MyApp({super.key});

  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      title: 'Get My Location Demo',
      theme: ThemeData(primarySwatch: Colors.blue),
      home: const LocationDemoScreen(),
    );
  }
}

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

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(title: const Text('Get My Location')),
      body: const Padding(
        padding: EdgeInsets.all(16.0),
        child: LocationGetter(),
      ),
    );
  }
}
3
likes
150
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, geolocator, permission_handler

More

Packages that depend on get_my_location