gplacespicker 0.0.1 copy "gplacespicker: ^0.0.1" to clipboard
gplacespicker: ^0.0.1 copied to clipboard

Google Place Picker for Android only.

example/lib/main.dart

import 'package:flutter/material.dart';

import 'package:gplacespicker/gplacespicker.dart';

void main() => runApp(new MyApp());

class MyApp extends StatefulWidget {
  @override
  _MyAppState createState() => new _MyAppState();
}

class _MyAppState extends State<MyApp> {
  String latLng = "";

  @override
  Widget build(BuildContext context) {
    return new MaterialApp(
      home: new Scaffold(
        appBar: new AppBar(
          title: const Text('Plugin example app'),
        ),
        body: Column(
          mainAxisSize: MainAxisSize.min,
          children: <Widget>[
            Text(latLng),
            RaisedButton(
              child: Text("pick"),
              onPressed: () async {
                String latLng = await Gplacespicker.openPlacePicker();
                setState(() {
                  this.latLng = latLng;
                });
              },
            ),
          ],
        ),
      ),
    );
  }
}
0
likes
20
pub points
0%
popularity

Publisher

unverified uploader

Google Place Picker for Android only.

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter

More

Packages that depend on gplacespicker