google_map_location_picker 0.0.2 copy "google_map_location_picker: ^0.0.2" to clipboard
google_map_location_picker: ^0.0.2 copied to clipboard

outdated

🌍 Map location picker component for flutter Based on google_maps_flutter

example/lib/main.dart

import 'package:flutter/material.dart';
import 'package:google_map_location_picker/google_map_location_picker.dart';
import 'package:google_maps_flutter/google_maps_flutter.dart';

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

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

class _MyAppState extends State<MyApp> {
  @override
  Widget build(BuildContext context) {
    return MaterialApp(
      home: Scaffold(
        //        appBar: AppBar(
//          title: const Text('Plugin example app'),
//        ),
        body: Builder(builder: (context) {
          return Center(
            child: Column(
              mainAxisAlignment: MainAxisAlignment.center,
              children: <Widget>[
                RaisedButton(
                  onPressed: () async {
                    LatLng result = await LocationPicker.pickLocation(context);
                    print("result = ${result}");
                  },
                  child: Text('Pic location'),
                )
              ],
            ),
          );
        }),
      ),
    );
  }
}
239
likes
0
pub points
85%
popularity

Publisher

unverified uploader

🌍 Map location picker component for flutter Based on google_maps_flutter

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

android_intent, flutter, flutter_localizations, geolocator, google_maps_flutter, intl, intl_translation, marquee, provider

More

Packages that depend on google_map_location_picker