Google Places Autocomplete

The google_places_autocomp package provides an easy-to-use interface for integrating Google Places Autocomplete functionality into your Flutter applications. This package simplifies the process of adding location-based search capabilities, allowing users to search for places and retrieve detailed information about them.

Features

  • Autocomplete search for places using Google Places API.
  • Retrieve detailed information about selected places.
  • Customizable search parameters and UI components.
  • Easy integration with existing Flutter applications.

Getting started

To start using the google_places_autocomp package, you need to have a Google Cloud project with the Places API enabled. Follow these steps:

  1. Create a new project on the Google Cloud Console.
  2. Enable the Places API for your project.
  3. Generate an API key for accessing the Places API.
  4. Add the API key to your Flutter application.

Usage

Here is a basic example of how to use the google_places_autocomp package:

import 'package:google_places_autocomp/google_places_autocomp.dart';

void main() {
    runApp(MyApp());
}

class MyApp extends StatelessWidget {
    @override
    Widget build(BuildContext context) {
        return MaterialApp(
            home: Scaffold(
                appBar: AppBar(
                    title: Text('Google Places Autocomplete Example'),
                ),
                body: GooglePlacesAutoCompleteTextFormField(
                    googleAPIKey: 'YOUR_API_KEY',
                    textEditingController : controller,

                ),
            ),
        );
    }
}

Additional information

For more information about the google_places_autocomp package, visit the official documentation. If you encounter any issues or have suggestions for improvements, please file an issue on the GitHub repository. Contributions are welcome!

For further assistance, you can reach out to the package authors via the contact information provided in the repository.