flutter_places 1.0.0+4
flutter_places: ^1.0.0+4 copied to clipboard
Flutter places fully customizable widget for autocomplete, compatible with Light and Dark mode, based on https://pub.dartlang.org/packages/google_maps_webservice
Flutter Places #
Flutter places fully customizable widget for autocomplete, compatible with Light and Dark mode.
FullScreen Mode #
![]() |
![]() |
![]() |
Overlay Mode #
![]() |
![]() |
![]() |
Bottomsheet Mode #
![]() |
![]() |
![]() |
Usage #
Include 'flutter_places' from Dart Pub.
# pubspec.yaml
dependencies:
flutter:
sdk: flutter
flutter_places: <last-version>
copied to clipboard
Next, import 'flutter_places.dart' into your dart code.
import 'package:flutter_places/flutter_places.dart';
copied to clipboard
Example
const apiKey = "API_KEY";
Place place = await FlutterPlaces.show(
context: context,
apiKey: apiKey,
modeType: ModeType.OVERLAY,
);
copied to clipboard
The library use google_maps_webservice library which directly refer to the official documentation for google maps web service.