place_picker 0.9.20-nullsafety copy "place_picker: ^0.9.20-nullsafety" to clipboard
place_picker: ^0.9.20-nullsafety copied to clipboard

outdated

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/place_picker.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: FlatButton(
          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);
  }
}
141
likes
0
pub points
96%
popularity

Publisher

verified publisherdegreat.co.uk

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

Repository (GitHub)
View/report issues

License

unknown (LICENSE)

Dependencies

flutter, google_maps_flutter, http, location

More

Packages that depend on place_picker