flutter_google_places_sdk 0.1.0+3

Flutter Android iOS

A Flutter plugin for google places sdk that uses the native libraries on each platform

flutter_google_places_sdk #

pub package

A Flutter plugin for google places sdk that uses the native libraries on each platform

Note: Currently only support Android

Usage #

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

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: RaisedButton(
          onPressed: () async {
            final places = FlutterGooglePlacesSdk('my-key');
            final predictions =
                await places.findAutocompletePredictions('Tel Aviv');
            print('Result: $predictions');
          },
          child: Text('Predict and print to console'),
        ),
      ),
    ),
  ));
}

2
likes
90
pub points
39%
popularity

Publisher

sparta.guru

A Flutter plugin for google places sdk that uses the native libraries on each platform

Homepage
Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD (LICENSE)

Dependencies

flutter, flutter_google_places_sdk_platform_interface, flutter_plugin_android_lifecycle

More

Packages that depend on flutter_google_places_sdk