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(onPicked: (result){
    // you can get the location result here
    print(result.address);
    print(result.latitude);
    print(result.longitude);
})