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

पैकेज विवरणv2.1.1

google_places_flutter

Android और iOS दोनों के लिए कस्टम Google स्थान सुझाव विकल्प विंडो। https://pub.dev/packages/google_places_flutter का उपयोग करें

AndroidiOSWebmacOSWindowsLinux
30-दिन डाउनलोड
94.4 हज़ार
लाइक
100
Pub अंक
130

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

flutter pub add google_places_flutter

पैकेज अवलोकन

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

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

उपयोग

  • फॉर्म में पता इनपुट
  • स्थान-आधारित ऐप विशेषताएं
  • जियोकोडिंग और मानचित्र समावेशन
  • यात्रा और डिलीवरी ऐप्स
  • उपयोगकर्ता प्रोफ़ाइल स्थान सेटअप
  • घटना स्थल चयन

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

  • वास्तविक समय के सुझाव स्थान
  • क्रॉस-प्लेटफ़ॉर्म समर्थन
  • कस्टमाइज़ किए गए UI
  • स्थान विवरण प्राप्त करें
  • आसान API एकीकरण
  • कई प्लेटफॉर्म का समर्थन करता है

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

  • स्थान खोज की आवश्यकता वाले मोबाइल और वेब ऐप्स
  • Google Places API का उपयोग करने वाले विकासकर्ता
  • सही पते के इनपुट की आवश्यकता वाले ऐप्स
  • स्थान-जागरूक एप्लिकेशन
  • क्रॉस-प्लेटफ़ॉर्म समाधान बना रहे टीमें

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

  • Google Places API की की आवश्यकता है
  • उपयोग लागत का हो सकता है
  • इंटरनेट कनेक्टिविटी पर निर्भर है
  • स्वचालित पूर्ण करने वाले ड्रॉपडाउन में सीमित कस्टमाइज़ेशन
  • सुझावों में संभावित लेटेंसी
  • API विफलताओं के लिए उचित त्रुटि संभाल की आवश्यकता है

मूल README

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

google_places_flutter

Add dependency into pubspec.yml

dependencies:
  flutter:
    sdk: flutter
  google_places_flutter: <last-version>
  

Google AutoComplete TextField Widget code

    GooglePlaceAutoCompleteTextField(
        textEditingController: controller,
        googleAPIKey: "YOUR_GOOGLE_API_KEY",
        inputDecoration: InputDecoration()
        debounceTime: 800 // default 600 ms,
        countries: ["in","fr"],// optional by default null is set
        isLatLngRequired:true,// if you required coordinates from place detail
        getPlaceDetailWithLatLng: (Prediction prediction) {
         // this method will return latlng with place detail
        print("placeDetails" + prediction.lng.toString());
        }, // this callback is called when isLatLngRequired is true
        itemClick: (Prediction prediction) {
         controller.text=prediction.description;
          controller.selection = TextSelection.fromPosition(TextPosition(offset: prediction.description.length));
        }
        // if we want to make custom list item builder
        itemBuilder: (context, index, Prediction prediction) {
          return Container(
            padding: EdgeInsets.all(10),
            child: Row(
              children: [
                Icon(Icons.location_on),
                SizedBox(
                  width: 7,
                ),
                Expanded(child: Text("${prediction.description??""}"))
              ],
            ),
          );
        }
        // if you want to add seperator between list items
        seperatedBuilder: Divider(),
        // want to show close icon 
        isCrossBtnShown: true,
        // optional container padding
         containerHorizontalPadding: 10,
         // place type
        placeType: PlaceType.geocode,
        // keyboard type (defaults to TextInputType.streetAddress)
        keyboardType: TextInputType.text, // optional - defaults to streetAddress for better address input
         
         
        
        
    )
    

Customization Option

You can customize a text field input decoration and debounce time

Screenshorts

श्रेणियाँ

निर्भरताएँ

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

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

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

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

रैंकिंग