Skip to main content

easy_place_picker_plus 1.0.0 copy "easy_place_picker_plus: ^1.0.0" to clipboard
easy_place_picker_plus: ^1.0.0 copied to clipboard

A customizable Google Maps place picker with autocomplete, camera selection, location permissions and selected-place details.

easy_place_picker_plus #

A customizable Google Maps place picker with autocomplete, camera selection, location permissions and selected-place details.

An independently maintained, public fork of easy_place_picker. It is a general-purpose Flutter library and does not depend on EasyHour services or a private account.

Requirements #

  • Flutter 3.50 or later and Dart 3.14 or later.
  • Standalone material_ui and cupertino_ui libraries. This release is incompatible with the legacy in-SDK design-system types.

Installation #

dependencies:
  easy_place_picker_plus: ^1.0.0
import 'package:easy_place_picker_plus/easy_place_picker_plus.dart';
import 'package:material_ui/material_ui.dart';

See the example, migration guide and release checklist. The previous easy_place_picker.dart barrel remains available inside the new package as a compatibility export; the old package name is not an alias.

Usage #

import 'package:google_maps_flutter/google_maps_flutter.dart';

EasyPlacePicker(
  googleApiKey: const String.fromEnvironment('GOOGLE_MAPS_API_KEY'),
  initialPosition: const LatLng(44.6488, 10.9201),
  mapTypes: MapType.values,
  onPlacePicked: (result) {
    // Read result.formattedAddress and result.latLng.
  },
);

Google Maps configuration #

  • Configure Maps SDKs, Places (legacy endpoints used by flutter_google_maps_webservices) and Geocoding APIs for your Google Cloud project; billing and appropriate API restrictions are required by Google.
  • Android: follow the current google_maps_flutter setup and supply a restricted Maps API key in the application manifest. Location features require the relevant foreground location permissions; follow geolocator, location and permission_handler platform setup. The example uses compileSdk 37.
  • iOS: provide the Maps key in application startup and a meaningful NSLocationWhenInUseUsageDescription for location features; follow the installed plugin deployment-target requirements.
  • Web: load the Google Maps JavaScript API in the host page before Flutter bootstrap and use an appropriately restricted browser key. Browsers require a secure context for location; check the Google service/CORS configuration used by your deployment. Desktop map platforms are not advertised by this package.
  • Supply the picker key with --dart-define=GOOGLE_MAPS_API_KEY=... for the example, plus the separate native/web Maps setup. No real key is included in the repository. Client keys are visible to clients and must have platform/API restrictions.

Supported integration targets are Android, iOS and web, subject to their plugin and Google service requirements. Automated validation covers Dart/widget behavior and web compilation; real Maps, permissions and native device behavior require testing with your own project credentials. The public result model still uses flutter_google_maps_webservices types; that dependency has not been replaced.

Origin and license #

Derived from easy_place_picker at c6f6360588e8bc66c195056e2256a6804074784c. Original authors, copyright notices and licenses are preserved in LICENSE. Historical API documentation is archived in UPSTREAM_README.md; its version and support claims do not apply to this fork.

This fork updates dependencies, design-system imports, examples and development tooling. See CHANGELOG.md for changes.

1
likes
150
points
86
downloads

Documentation

API reference

Publisher

verified publishereasyhour.app

Weekly Downloads

A customizable Google Maps place picker with autocomplete, camera selection, location permissions and selected-place details.

Repository (GitHub)
View/report issues

Topics

#google-maps #location #place-picker

License

Apache-2.0 (license)

Dependencies

cupertino_ui, flutter, flutter_google_maps_webservices, geolocator, google_api_headers, google_maps_flutter, http, location, material_ui, permission_handler, provider, uuid

More

Packages that depend on easy_place_picker_plus