place_picker_flutter 0.1.1 copy "place_picker_flutter: ^0.1.1" to clipboard
place_picker_flutter: ^0.1.1 copied to clipboard

A Flutter package that provide location picker functionality on custom map.

Place Picker for Flutter #

pub package

A Flutter package that provide place picker functionality on custom map.

Features #

This package provide the following features:

  • Indicate the selected place by a animated pin.
  • Picking place can be done by dragging map.
  • Picking place can be done by selecting a POI.
  • The ability of searching POIs by keyword.

Installation #

In the dependencies: section of your pubspec.yaml, add the following line:

place_picker_flutter: <latest_version>

Usage #

@override
Widget build(BuildContext context) {
  return Scaffold(
    body: PlacePicker(
      placePickerController: placePickerController,
      iconWidget: SvgPicture.asset(
        "assets/location.svg",
        height: 60,
      ),
      onSelectPlace: <callback function when select POI>,
      onSearch: <callback function when search keyword>,
      map: <custom map widget>,
    ),
  );

PlacePickerController can control place pin lifting up and down, also can refresh places list. iconWidget can custom place pin icon. onSelectPlace is a callback function when selecing a place from place list. onSearch is a callback function when search POIs by keyword entered in search bar. map is custom map widget to show map.

More detail usage can reference the example app.

3
likes
160
points
16
downloads

Publisher

unverified uploader

Weekly Downloads

A Flutter package that provide location picker functionality on custom map.

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

flutter, latlong2

More

Packages that depend on place_picker_flutter