パッケージ、リポジトリ、アプリカテゴリを検索

GitHub リポジトリhoc081098/flutter_google_places_hoc081098

flutter_google_places_hoc081098

より良い flutter_google_places、@hoc081098 によって更新されました

flutter_google_places_hoc081098 のプロジェクト画像
スター
20
フォーク
49
最終プッシュ(UTC)
2024/06/21
プロジェクト状態
公開中

元の README

以下は英語原文のスナップショットです。最新版は GitHub をご覧ください。

flutter_google_places_hoc081098

All Contributors

Google places autocomplete widgets for flutter.

Updated by @hoc081098. See files changed

Pub Hits Build example

Liked some of my work? Buy me a coffee (or more likely a beer). Thanks for your support :heart:

Buy Me A Coffee

  • 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!

Petrus Nguyễn Thái Học GitHub avatar
GitHub 作者

Petrus Nguyễn Thái Học ↗

Functional & Reactive Programming - Rx Fan 🌰 RxDart - RxKotlin - RxSwift - rxjs 🌸 Android - iOS - Flutter - Node.js - Angular

@Kotlin-Android-Open-Source @Flutter-Dart-Open-SourceDa Nang, Vietnam公式サイト ↗
言語DartHTMLRubySwiftKotlinObjective-C

カテゴリー

使用している依存関係

依存関係一覧 14 件

プロジェクトに合うリポジトリを選ぶには?

用途で絞り込み、開発状況を比較し、採用前に元のリポジトリで要件を確認しましょう。

  1. 名前・作者・説明で検索し、技術トピックで絞り込みます。
  2. スター、フォーク、最近のプッシュを比較します。スターは関心の目安であり、品質の保証ではありません。
  3. 利用前に GitHub で README、ライセンス、Issues を確認します。

情報源と管理

“A repository is the most basic element of GitHub.”

GitHub Docs — About repositories ↗