Search packages, repositories and app categories

Package detailsv0.3.0

flutter_google_places_sdk_windows

The windows implementation of Flutter plugin for google places sdk

Windows
30-day downloads
45.1K
Likes
0
Pub points
150

Install package

flutter pub add flutter_google_places_sdk_windows

Package Overview

Package selection guidance compiled from public package information, community data, and project usage.

A Windows-specific implementation of the Flutter plugin for Google Places SDK, enabling developers to integrate Google's place search and autocomplete features into Windows applications. It allows users to discover locations, retrieve place details, and perform geocoding directly within Flutter apps running on Windows. The package is designed to work seamlessly with the broader Flutter ecosystem and leverages native Windows capabilities for optimal performance.

Use cases

  • Integrating place autocomplete in Windows desktop apps
  • Searching for locations using Google Places API
  • Displaying location suggestions in a Windows application
  • Enhancing user experience with real-time place predictions
  • Building travel or logistics apps for Windows

Key features

  • Native Windows platform integration
  • Supports place autocomplete and details retrieval
  • Compatible with Flutter's cross-platform workflow
  • Uses Google Places API under the hood
  • Lightweight and easy to configure

Suitable for

  • Developers building Windows desktop apps with location features
  • Apps requiring Google Places functionality on Windows
  • Flutter teams targeting multi-platform deployment

Considerations

  • Requires Google Places API key configuration
  • Limited to Windows platform only
  • Depends on internet connectivity for API calls
  • May require additional setup for production deployment

Original README

Original README snapshot from the linked source repository. Visit the repository for the latest content.

flutter_google_places_sdk

pub package

Tests

A Flutter plugin for google places sdk that uses the native libraries on each platform. Check out Rational below to understand why you should use this plugin.

Usage

To use this plugin, add flutter_google_places_sdk as a dependency in your pubspec.yaml file.

Web Usage

When using the web support you also need to enable the Maps JavaScript API in google cloud:

https://developers.google.com/maps/documentation/javascript/get-api-key

Limits:

  • Location restriction is not supported. See google issue tracker for more info: https://issuetracker.google.com/issues/36219203

Rational

By now you probably found some other plugins, and wondering why this one was even created. Well, there's a good reason for that.

All other plugins will use http web requests rather than the native sdk.

Google allows you to limit the usage of your api key to your android application. However, that only works when you're using the native SDK.

So when using the http web requests method, you can't actually limit it, and if someone can get your API key (usually not a problem if it's in a mobile client), it can be used anywhere outside of it.

Example

import 'package:flutter/material.dart';
import 'package:flutter_google_places_sdk/flutter_google_places_sdk.dart';

void main() {
  runApp(MaterialApp(
    home: Scaffold(
      body: Center(
        child: ElevatedButton(
          onPressed: () async {
            final places = FlutterGooglePlacesSdk('my-key');
            final predictions =
                await places.findAutocompletePredictions('Tel Aviv');
            print('Result: $predictions');
          },
          child: Text('Predict and print to console'),
        ),
      ),
    ),
  ));
}

Development & Contributing

This is a side project of mine, hence issues are usually dealt with on weekends.

PRs are more than welcome if anyone want to contribute. There are

Contribution Guidelines
  1. General code quality will adhere to new PRs, although nothing too strict. Specifics will discussed in each PRs.
  2. This is a multi-platform plugin, and each package is maintained independently. As part of it, each commit that changes the version is also tagged per platform. The result is that changes that require multiple packages will require multiple commits - and hence multiple PRs.

Categories

Dependencies

Dependency list 2 items

Source repository

Projects using this package

No data available yet.

Rankings