Code Monkey home page Code Monkey logo

Comments (10)

yudi43 avatar yudi43 commented on July 20, 2024 7

use import 'package:google_maps_webservice/places.dart'; along with, import 'package:flutter_google_places/flutter_google_places.dart';

from flutter_google_places.

IRuFFeYI avatar IRuFFeYI commented on July 20, 2024 4

I had the same Problem. You need this import "import 'package:google_maps_webservice/places.dart';". Then everything workes fine.

from flutter_google_places.

pratik037 avatar pratik037 commented on July 20, 2024 1

@mohammed932 checkout the example from the stackoverflow link here
You can the find the example code in the answer which will solve your issue.

from flutter_google_places.

mohammed932 avatar mohammed932 commented on July 20, 2024

and also this error occur "[dart] Undefined class 'Prediction'."
in this line code =======> Prediction p = await PlacesAutocomplete.show

from flutter_google_places.

mayankjanmejay avatar mayankjanmejay commented on July 20, 2024

Hello,
I had previously successfully used this plugin in my app about 2 months ago. I didn't have this error before but I suddenly now do have this error now and Its not getting resolved with the solution mentioned in stackoverflow.

Please help.

from flutter_google_places.

pratik037 avatar pratik037 commented on July 20, 2024

Hello,
I had previously successfully used this plugin in my app about 2 months ago. I didn't have this error before but I suddenly now do have this error now and Its not getting resolved with the solution mentioned in stackoverflow.

Please help.

You might wanna check the new docs as they must have updated some things.

from flutter_google_places.

Shivkant23 avatar Shivkant23 commented on July 20, 2024

flutter_google_places_autocomplete 0.1.3
with method showGooglePlacesAutocomplete()
not showing any error with your code.

from flutter_google_places.

pratik037 avatar pratik037 commented on July 20, 2024

flutter_google_places_autocomplete 0.1.3
with method showGooglePlacesAutocomplete()
not showing any error with your code.

Whom are you talking to my friend? Quote the reply and then answer :)

from flutter_google_places.

mayankjanmejay avatar mayankjanmejay commented on July 20, 2024

It seems to have been something with my flutter pub cache once I cleared the cache it started working again.

from flutter_google_places.

KevMorelli avatar KevMorelli commented on July 20, 2024

Resolved by @IRuFFeYI and @yudi43

from flutter_google_places.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.