Location Picker Text Field

A Location Picker Text Field (autocomplete) widget for Flutter, where you can show any location suggestions to users as they type.

Success Status Success Status

Features

  • Shows suggestions in an floating box with the same width as your TextField.
  • Allows to get the Latitude and Longitude of selected location.

Usage

You can import the package with:

  import 'package:location_picker_text_field/open_street_location_picker.dart';

Use this code for easy development

  TextEditingController locationName = TextEditingController();
  Container(
    padding: const EdgeInsets.fromLTRB(10, 5, 10, 5),
    child: LocationPicker(
      label: "From",
      controller: locationName,
      onSelect: (data){
        locationName.text = data.displayname;
      },
    ),
  )