flutter_google_places_hoc081098
बेहतर flutter_google_places, @hoc081098 द्वारा अपडेट किया गया
- स्टार
- 20
- फ़ोर्क
- 49
- अंतिम पुश (UTC)
- 21 जून 2024
- प्रोजेक्ट स्थिति
- सक्रिय
मूल README
यह अंग्रेज़ी मूल स्नैपशॉट है। नवीनतम सामग्री GitHub पर देखें।
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!
श्रेणियाँ
उपयोग की गई निर्भरताएँ
निर्भरता सूची 14 आइटम
- 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_testडेवलपमेंट
{"sdk":"flutter"} - flutter_lintsडेवलपमेंट
^4.0.0 - build_runnerडेवलपमेंट
^2.4.11 - json_serializableडेवलपमेंट
^6.8.0
अपने प्रोजेक्ट के लिए रिपॉज़िटरी कैसे चुनें?
उपयोग के अनुसार छाँटें, गतिविधि की तुलना करें और अपनाने से पहले मूल प्रोजेक्ट की आवश्यकताएँ जाँचें।
- नाम, लेखक या विवरण से खोजें और तकनीकी विषय से परिणाम सीमित करें।
- स्टार, फ़ोर्क और हाल के पुश की तुलना करें। स्टार रुचि दर्शाते हैं, गुणवत्ता की गारंटी नहीं।
- उपयोग से पहले GitHub पर README, लाइसेंस और Issues जाँचें।
स्रोत और रखरखाव
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗
