place_picker_fix_geolocator 0.10.2 copy "place_picker_fix_geolocator: ^0.10.2" to clipboard
place_picker_fix_geolocator: ^0.10.2 copied to clipboard

Place picker fully written in dart for Flutter. Comes with autocomplete suggestions and nearby locations list. Localization too.

example/example.dart

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

class PickerDemo extends StatefulWidget {
  @override
  State<StatefulWidget> createState() => PickerDemoState();
}

class PickerDemoState extends State<PickerDemo> {
  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: AppBar(title: const Text('Picker Example')),
      body: Center(
        child: TextButton(
          child: Text("Pick Delivery location"),
          onPressed: () {
            showPlacePicker();
          },
        ),
      ),
    );
  }

  void showPlacePicker() async {
    LocationResult? result = await Navigator.of(context).push(
        MaterialPageRoute(builder: (context) => PlacePicker("YOUR API KEY")));

    // Handle the result in your way
    print(result);
  }
}
1
likes
50
points
18
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Place picker fully written in dart for Flutter. Comes with autocomplete suggestions and nearby locations list. Localization too.

License

BSD-3-Clause (license)

Dependencies

flutter, geolocator, google_maps_flutter, http

More

Packages that depend on place_picker_fix_geolocator