flutter_google_places_hoc081098
2.0.0, released 2 years ago by an unverified publisher
Google Places autocomplete widgets for Flutter
What it does
Provides ready-to-use widgets and dialogs for searching Google Places with autocomplete functionality. It supports overlay and fullscreen display modes, custom language settings, and component filtering.
AI-written summary of version 2.0.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need a quick way to integrate Google Places search and autocomplete into your Flutter app.
- You want to allow users to select addresses or locations using the Google Places API.
Skip it when
- You are using a map provider other than Google Maps or require custom place providers.
- You want a fully headless client without pre-built UI widgets.
Strengths
- Easy to set up with overlay and fullscreen modes
- Supports custom styling and input decoration
- Handles error callbacks and autocomplete predictions out of the box
Weaknesses
- Requires a valid Google Places API key and billing enabled on your Google Cloud account
- License is unknown
Setup
- Kind
- Flutter widgets
- Effort
- Low
- Code generation
- Yes (build_runner)
- Direct dependencies
- 9
Requires a Google API key and enabling billing on your Google Cloud account.
final Prediction? p = await PlacesAutocomplete.show(
context: context,
apiKey: kGoogleApiKey,
onError: (response) => print(response.errorMessage),
mode: Mode.overlay,
language: 'fr',
components: [Component(Component.country, 'fr')],
);Alternatives
Packages that do the same job and could replace flutter_google_places_hoc081098.
- google_maps_flutter_web
Web platform implementation of google_maps_flutter.
88Compare - google_maps_flutter_android
Android implementation of the google_maps_flutter plugin.
82Compare - google_maps_flutter_ios
iOS implementation of the google_maps_flutter plugin.
81Compare - google_maps_flutter
A Flutter plugin for integrating Google Maps in Android, iOS, and web applications.
90Compare
Works with
Packages commonly used together with flutter_google_places_hoc081098: ones it builds on, ones built on it, and its own family.
- json_annotationflutter_google_places_hoc081098 depends on itProvides annotations for json_serializable to generate JSON (de)serialization code.
- rxdartflutter_google_places_hoc081098 depends on itImplementation of the ReactiveX API for asynchronous programming leveraging native Dart Streams.
- google_api_headersflutter_google_places_hoc081098 depends on itA Flutter plugin to fetch required headers for calling Google APIs with an app-restricted API key.
- rxdart_extflutter_google_places_hoc081098 depends on itExtension methods and classes built on top of RxDart like Single and StateStream.
- listenable_streamflutter_google_places_hoc081098 depends on itConvert Flutter Listenable and ValueListenable objects into Dart Streams and ValueStreams.
- flutter_bloc_patternflutter_google_places_hoc081098 depends on itProvides BLoCs to descendant widgets with internal disposal and RxDart stream builders.