Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SearchingState stuck at 'Searching' after selecting a suggested place #124

Closed
Wian-TMC opened this issue Jun 1, 2021 · 5 comments · Fixed by #147
Closed

SearchingState stuck at 'Searching' after selecting a suggested place #124

Wian-TMC opened this issue Jun 1, 2021 · 5 comments · Fixed by #147

Comments

@Wian-TMC
Copy link

Wian-TMC commented Jun 1, 2021

Describe the bug
When selecting an option from the suggested dropdown list, the map animates to the selected location, but the SearchingState in the selectedPlaceWidgetBuilder remains stuck at 'SearchingState.Searching', even though a PickResult is returned. When moving the map to a different position it fixes itself.

I am using the pre-release version 2.0.0-nullsafety.3

A temp fix is to check if PickResult is not null in selectedPlaceWidgetBuilder, but then the effect of a loader when moving between places is not possible.

To Reproduce
Steps to reproduce the behavior:

  1. Search for any place
  2. Click on any suggestion
  3. Notice the SearchingState in selectedPlaceWidgetBuilder remains stuck at 'SearchingState.Searching'.

Expected behavior
The SearchingState in selectedPlaceWidgetBuilder should change to 'SearchingState.Idle' once the PickResult is returned.

Flutter Doctor -v
[✓] Flutter (Channel stable, 2.0.6, on Mac OS X 10.15.7 19H15 darwin-x64, locale en-ZA)
• Flutter version 2.0.6 at /Users/wiansnyman/Development/flutter
• Framework revision 1d9032c7e1 (5 weeks ago), 2021-04-29 17:37:58 -0700
• Engine revision 05e680e202
• Dart version 2.12.3

[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.2)
• Android SDK at /Users/wiansnyman/Library/Android/sdk
• Platform android-30, build-tools 30.0.2
• Java binary at: /Applications/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6222593)
• All Android licenses accepted.

[✓] Xcode - develop for iOS and macOS
• Xcode at /Applications/Xcode.app/Contents/Developer
• Xcode 12.1, Build version 12A7403
• CocoaPods version 1.10.1

[✓] Chrome - develop for the web
• Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 4.0)
• Android Studio at /Applications/Android Studio.app/Contents
• Flutter plugin version 48.1.2
• Dart plugin version 193.7361
• Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6222593)

[✓] VS Code (version 1.56.2)
• VS Code at /Applications/Visual Studio Code.app/Contents
• Flutter extension version 3.22.0

[✓] Connected device (2 available)
• iPhone 11 (mobile) • A412F27A-EB0B-45CA-96B2-9FAC6FB7E655 • ios • com.apple.CoreSimulator.SimRuntime.iOS-14-1 (simulator)
• Chrome (web) • chrome • web-javascript • Google Chrome 90.0.4430.212

• No issues found!

@svyazist2005
Copy link

svyazist2005 commented Jun 7, 2021

I have met the same issue with
google_maps_place_picker: ^2.0.0-nullsafety.3

[✓] Flutter (Channel unknown, 2.0.3, on Mac OS X 10.15.7 19H524 darwin-x64, locale en-UA)
• Flutter version 2.0.3 at /Users/svyazist2005/fvm/versions/2.0.3
• Framework revision 4d7946a68d (3 months ago), 2021-03-18 17:24:33 -0700
• Engine revision 3459eb2436
• Dart version 2.12.2

[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.2)
• Android SDK at /Users/svyazist2005/WorkTools/Android/sdk
• Platform android-30, build-tools 30.0.2
• ANDROID_HOME = /Users/svyazist2005/WorkTools/Android/sdk
• Java binary at: /Users/svyazist2005/WorkTools/Android Studio.app/Contents/jre/jdk/Contents/Home/bin/java
• Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6222593)
• All Android licenses accepted.

[!] Xcode - develop for iOS and macOS
• Xcode at /Users/svyazist2005/WorkTools/Xcode.app/Contents/Developer
• Xcode 12.0, Build version 12A7209
! Xcode 12.0.0 out of date (12.0.1 is recommended).
Download the latest version or update via the Mac App Store.
• CocoaPods version 1.10.1

[✓] Chrome - develop for the web
• Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome

[✓] Android Studio (version 4.0)
• Android Studio at /Users/svyazist2005/WorkTools/Android Studio.app/Contents
• Flutter plugin version 48.1.2
• Dart plugin version 193.7547
• Java version OpenJDK Runtime Environment (build 1.8.0_242-release-1644-b3-6222593)

[✓] Connected device (3 available)
• sdk gphone x86 (mobile) • emulator-5554 • android-x86 • Android 11 (API 30) (emulator)
• iPhone 11 (mobile) • C41BAD7E-FAD6-420C-BC88-7E44088648CF • ios • com.apple.CoreSimulator.SimRuntime.iOS-14-0 (simulator)
• Chrome (web) • chrome • web-javascript • Google Chrome 91.0.4472.77

@svyazist2005
Copy link

svyazist2005 commented Jun 15, 2021 via email

@jahanzebifisol
Copy link

I am facing the same issue. After searching the place loading keeps on loading.

@poqueque
Copy link

poqueque commented Sep 7, 2021

There is a pull request from a year ago fixing the issue. Hope is merged soon.

martin-braun pushed a commit to martin-braun-net/google_maps_place_picker_mb that referenced this issue Sep 8, 2021
Fix permanent loading indicator when using search bar on iOS. Fixes fysoul17#124.
@martin-braun
Copy link
Contributor

There is a pull request from a year ago fixing the issue. Hope is merged soon.

This PR is bugged, I tested it. I made a PR fixing this that is not bugged. See #147.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants