google_places_flutter 0.0.3 copy "google_places_flutter: ^0.0.3" to clipboard
google_places_flutter: ^0.0.3 copied to clipboard

outdated

Google Place Autocomplete TextField

google_places_flutter #

Add dependency into pubspec.yml #

dependencies:
  flutter:
    sdk: flutter
  google_places_flutter: <last-version>
  

Google AutoComplete TextField Widget code #

    GooglePlaceAutoCompleteTextField(
        textEditingController: controller,
        googleAPIKey: "YOUR_GOOGLE_API_KEY",
        inputDecoration: InputDecoration()
        debounceTime: 800 // default 600 ms,
        itmClick: (Prediction prediction) {
         controller.text=prediction.description;
          controller.selection = TextSelection.fromPosition(TextPosition(offset: prediction.description.length));
        }
    )
    

Customization Option #

You can customize a text field input decoration and debounce time

71
likes
0
points
17.6k
downloads

Publisher

unverified uploader

Weekly Downloads

Google Place Autocomplete TextField

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

dio, flutter, rxdart

More

Packages that depend on google_places_flutter