flutter_map_location_picker 0.0.6 flutter_map_location_picker: ^0.0.6 copied to clipboard
A map location picker using flutter_map with search and pick location for free and without any API key!
flutter_map_location_picker #
A flutter plugin for picking location by using flutter_map and geocoding. Completely free and highly customizable
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);
})