From ff455964e2170ec82ef9c068872efd9f47a7f53c Mon Sep 17 00:00:00 2001 From: vjrj Date: Mon, 11 Jun 2018 10:04:48 +0200 Subject: [PATCH] Remove country in autocomplete --- lib/placesAutocompleteUtils.dart | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/placesAutocompleteUtils.dart b/lib/placesAutocompleteUtils.dart index 51d5c2f..8f1552d 100644 --- a/lib/placesAutocompleteUtils.dart +++ b/lib/placesAutocompleteUtils.dart @@ -19,7 +19,10 @@ Future openPlacesDialog(BuildContext context) async { mode: _mode, // FIXME language: "es", - components: [new Component(Component.country, "es")]); + components: [ + // This limit the search too much + // new Component(Component.country, "es") + ]); if (p != null) { // get detail (lat/lng) PlacesDetailsResponse detail = await _places.getDetailsByPlaceId(p.placeId);