Skip to content

erics465/flutter_map_location_picker

 
 

Repository files navigation

flutter_map_location_picker

Flutter Package Pub Points Popularity

A flutter plugin for picking location by using flutter_map and geocoding. Completely free and highly customizable

github

Demo

Usage

Add dependency

Please check the latest version before installation. If there is any problem with the new version, please use the previous version

dependencies:
  flutter:
    sdk: flutter
  # add flutter_map_location_picker
  flutter_map_location_picker: ^0.0.4

How To Use

Add the following imports to your Dart code

import 'package:flutter_map_location_picker/flutter_map_location_picker.dart';

You can now add a MapLocationPicker widget to your widget tree. You can process the picked location by using the onPicked parameter.

MapLocationPicker(initialLatitude: null, initialLongitude: null, onPicked: (result){
  // you can get the location result here
  print(result.completeAddress);
  print(result.latitude);
  print(result.longitude);
})

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • Dart 44.3%
  • C++ 25.9%
  • CMake 21.0%
  • Ruby 3.1%
  • HTML 2.1%
  • Swift 1.9%
  • Other 1.7%