location_picker_flutter 1.2.3 copy "location_picker_flutter: ^1.2.3" to clipboard
location_picker_flutter: ^1.2.3 copied to clipboard

A location picker package that allows the use to pick a location and get the address via GPS, Map or Autocomplete Google Apis.

example/lib/main.dart

import 'dart:io';

import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:location_picker_flutter/location_picker_flutter.dart';

void main() {
  runApp(const MainApp());
}

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

  @override
  Widget build(BuildContext context) {
    return Platform.isAndroid
        ? MaterialApp(
            home: Scaffold(
              body: locationPickerWidget(),
            ),
          )
        : CupertinoApp(
            home: locationPickerWidget(),
          );
  }

  LocationPickerFlutter locationPickerWidget() {
    return LocationPickerFlutter(
      googleMapsApiKey: "YOUR_GOOGLE_MAPS_API_KEY",
      intialLocation: InitialSettings(
        latitude: 13,
        longitude: 80,
        zoom: 3,
      ),
      countries: const ["in"],
    );
  }
}
2
likes
150
points
355
downloads

Publisher

unverified uploader

Weekly Downloads

A location picker package that allows the use to pick a location and get the address via GPS, Map or Autocomplete Google Apis.

Repository (GitHub)

Documentation

API reference

License

MIT (license)

Dependencies

flutter, geocoding, geolocator, google_maps_flutter, skeletonizer

More

Packages that depend on location_picker_flutter