पैकेज, रिपॉज़िटरी और ऐप श्रेणियाँ खोजें

पैकेज विवरणv0.3.0

flutter_google_places_sdk_macos

Google Places SDK के Flutter प्लगइन का macOS अमल

macOS
30-दिन डाउनलोड
45.1 हज़ार
लाइक
0
Pub अंक
150

पैकेज इंस्टॉल करें

flutter pub add flutter_google_places_sdk_macos

पैकेज अवलोकन

सार्वजनिक जानकारी से बना चयन मार्गदर्शन। केवल संदर्भ हेतु।

Flutter प्लगइन के लिए macOS-विशेष कार्यान्वयन, Google Places SDK के लिए, जो डेवलपर्स को macOS एप्लिकेशन में Google Places कार्यक्षमता को एकीकृत करने की अनुमति देता है। यह उपयोगकर्ताओं को स्थानों की खोज, स्थान विवरण प्राप्त करने और स्वचालित पूर्वानुमान सुझाव प्राप्त करने की अनुमति देता है, बिना किसी निर्माण के मौजूदा macOS एप्लिकेशन में। यह पैकेज प्लेटफॉर्म चैनल्स के माध्यम से Google के Places API का उपयोग करता है, जिससे नीचे के Google सेवाओं के साथ निरंतर अंतरक्रिया सुनिश्चित होती है। macOS के लिए डेवलपर्स के लिए डिज़ाइन किया गया है, इसमें स्थान-आधारित खोज और स्थान पूर्वानुमान जैसी विशेषताएं हैं, जिनके लिए कम सेटअप की आवश्यकता होती है।

उपयोग

  • macOS डेस्कटॉप एप्लिकेशन में स्थान खोज का एकीकरण
  • पतों के लिए स्वचालित पूर्ण करना कार्यान्वित करें
  • स्थानों के बारे में विस्तृत जानकारी प्राप्त करना
  • macOS पर यात्रा या लॉजिस्टिक्स एप्लिकेशन बनाना
  • उत्पादकता उपकरणों में स्थान खोज सक्षम करना

मुख्य विशेषताएँ

  • मूल एमएसकॉस समावेशन
  • स्थान सुझाव और खोज
  • स्थान विवरण प्राप्ति का समर्थन
  • प्लेटफॉर्म चैनल संचार
  • Flutter pub के माध्यम से आसान सेटअप

इनके लिए उपयुक्त

  • स्थान सुविधाओं के साथ macOS ऐप विकसित करने वाले विकासकर्मी
  • सुझाव के साथ पता इनपुट की आवश्यकता वाले ऐप
  • Google Places API का उपयोग करने वाले डेस्कटॉप एप्लिकेशन
  • क्रॉस-प्लेटफॉर्म macOS समर्थन के लिए फ्लटर टीमें
  • Apple डेस्कटॉप पर विश्वसनीय स्थान डेटा की आवश्यकता वाले प्रोजेक्ट

विचार योग्य बातें

  • Google Cloud Platform API कुंजी की आवश्यकता है
  • मैकOS प्लेटफ़ॉर्म तक सीमित
  • इंटरनेट कनेक्शन पर निर्भर
  • यदि प्लेटफॉर्म के बीच उपयोग किया जाता है, तो iOS/Android के लिए अतिरिक्त कॉन्फ़िगरेशन की आवश्यकता हो सकती है
  • API का उपयोग प्रश्नों के आधार पर लागत वसूल कर सकता है

मूल README

संबंधित सोर्स रिपॉज़िटरी के मूल README का स्नैपशॉट। नवीनतम सामग्री के लिए रिपॉज़िटरी देखें।

flutter_google_places_sdk

pub package

Tests

A Flutter plugin for google places sdk that uses the native libraries on each platform. Check out Rational below to understand why you should use this plugin.

Usage

To use this plugin, add flutter_google_places_sdk as a dependency in your pubspec.yaml file.

Web Usage

When using the web support you also need to enable the Maps JavaScript API in google cloud:

https://developers.google.com/maps/documentation/javascript/get-api-key

Limits:

  • Location restriction is not supported. See google issue tracker for more info: https://issuetracker.google.com/issues/36219203

Rational

By now you probably found some other plugins, and wondering why this one was even created. Well, there's a good reason for that.

All other plugins will use http web requests rather than the native sdk.

Google allows you to limit the usage of your api key to your android application. However, that only works when you're using the native SDK.

So when using the http web requests method, you can't actually limit it, and if someone can get your API key (usually not a problem if it's in a mobile client), it can be used anywhere outside of it.

Example

import 'package:flutter/material.dart';
import 'package:flutter_google_places_sdk/flutter_google_places_sdk.dart';

void main() {
  runApp(MaterialApp(
    home: Scaffold(
      body: Center(
        child: ElevatedButton(
          onPressed: () async {
            final places = FlutterGooglePlacesSdk('my-key');
            final predictions =
                await places.findAutocompletePredictions('Tel Aviv');
            print('Result: $predictions');
          },
          child: Text('Predict and print to console'),
        ),
      ),
    ),
  ));
}

Development & Contributing

This is a side project of mine, hence issues are usually dealt with on weekends.

PRs are more than welcome if anyone want to contribute. There are

Contribution Guidelines
  1. General code quality will adhere to new PRs, although nothing too strict. Specifics will discussed in each PRs.
  2. This is a multi-platform plugin, and each package is maintained independently. As part of it, each commit that changes the version is also tagged per platform. The result is that changes that require multiple packages will require multiple commits - and hence multiple PRs.

श्रेणियाँ

निर्भरताएँ

निर्भरता सूची 2 आइटम

सोर्स रिपॉज़िटरी

इस पैकेज का उपयोग करने वाले प्रोजेक्ट

अभी कोई डेटा उपलब्ध नहीं है।

रैंकिंग