bazrafkan / google_place

A new Flutter package for handle google place api
MIT License
84 stars 122 forks source link

Optional timeout #38

Open santa112358 opened 2 years ago

santa112358 commented 2 years ago

Thank you for the great package. It helps me a lot🤗

I guess the timeout 1500 mil sec is too short for some cases, so it should be set by optional. Is it fine for you @bazrafkan ? If so, I will make pr for this change.

tomwyr commented 2 years ago

timeout inside GooglePlace class is mutable which means you should be able to adjust it for your needs.

Mayb3Nots commented 2 years ago

Added a PR to add this feature.

Meanwhile if you want you can use this in your pubspec.yaml

google_place:
    git:
      url: https://github.com/Mayb3Nots/google_place
      ref: master

However, I did some testing and found out that its faster to resend your request if its timesout rather than increasing the timeout and wait for it.