flutter_google_places_hoc081098
Melhor flutter_google_places, atualizado por @hoc081098
- Estrelas
- 20
- Forks
- 49
- Último push (UTC)
- 21 de jun. de 2024
- Status do projeto
- Ativo
README original
Texto original em inglês. Visite o GitHub para a versão atual.
flutter_google_places_hoc081098
Google places autocomplete widgets for flutter.
Updated by @hoc081098. See files changed
Liked some of my work? Buy me a coffee (or more likely a beer). Thanks for your support :heart:
- Migrated to null-safety.
- Updated dependencies to latest release.
- Refactoring by using RxDart for more power.
- Fixed many issues.
- Applied flutter_lints.
- Refactored example, migrated to Android v2 embedding.
dependencies:
flutter:
sdk: flutter
flutter_google_places_hoc081098: <last-version>
|
|
Simple usage
According to https://stackoverflow.com/a/52545293, you need to enable billing on your account, even if you are only using the free quota.
// replace flutter_google_places by flutter_google_places_hoc081098
import 'package:flutter_google_places_hoc081098/flutter_google_places_hoc081098.dart';
const kGoogleApiKey = 'API_KEY';
void onError(PlacesAutocompleteResponse response) {
ScaffoldMessenger.of(context).showSnackBar(
SnackBar(
content: Text(response.errorMessage ?? 'Unknown error'),
),
);
}
final Prediction? p = await PlacesAutocomplete.show(
context: context,
apiKey: kGoogleApiKey,
onError: onError,
mode: Mode.overlay, // or Mode.fullscreen
language: 'fr',
components: [Component(Component.country, 'fr')],
);
The library use google_maps_webservice library which directly refer to the official documentation for google maps web service.
Contributors ✨
Thanks goes to these wonderful people (emoji key):
Petrus Nguyễn Thái Học 💻 🚧 |
Corentin Giraud 💻 |
This project follows the all-contributors specification. Contributions of any kind welcome!
Categorias
Dependências usadas
Lista de dependências 14 itens
- flutter
{"sdk":"flutter"} - google_api_headers
^4.0.3 - http
^1.2.1 - rxdart
^0.28.0 - rxdart_ext
^0.3.0 - listenable_stream
^2.0.1 - collection
^1.18.0 - flutter_bloc_pattern
^3.0.0 - json_annotation
^4.9.0 - meta
^1.11.0 - flutter_testDesenvolvimento
{"sdk":"flutter"} - flutter_lintsDesenvolvimento
^4.0.0 - build_runnerDesenvolvimento
^2.4.11 - json_serializableDesenvolvimento
^6.8.0
Como escolher um repositório para seu projeto?
Filtre pelo caso de uso, compare a atividade e confira o projeto original antes de adotá-lo.
- Busque por nome, autor ou descrição e filtre por tema.
- Compare estrelas, forks e envios recentes. Estrelas indicam interesse, mas não garantem qualidade.
- Confira o README, a licença e as issues no GitHub antes de usar o projeto.
Fontes e manutenção
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗
