fysoul17 / google_maps_place_picker

Place picker on Google Maps for Flutter
MIT License
223 stars 365 forks source link

πŸ› Map not animating to the location on search. #125

Open uV3301 opened 3 years ago

uV3301 commented 3 years ago

Describe the bug When a user tries to search on the search bar, he either enters or choose the location from the suggestions below, the maps refreshes for a bit and then just stays where it was before. The result gets updated but the map does not animate to the location selected.

To Reproduce I'm providing a gist to the dart file where I'm using the package https://gist.github.com/uV3301/a01b8fb3111c97673f13ff9be861ad04

Expected behavior The expected behavior should be that after the search selection, the map should animate to the query location.

Screenshots

ss01 ss01 ss01

Flutter Doctor -v

[βœ“] Flutter (Channel stable, 2.2.0, on Linux, locale en_IN)
    β€’ Flutter version 2.2.0 at /home/uv3301/snap/flutter/common/flutter
    β€’ Framework revision b22742018b (4 weeks ago), 2021-05-14 19:12:57 -0700
    β€’ Engine revision a9d88a4d18
    β€’ Dart version 2.13.0

[βœ“] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
    β€’ Android SDK at /home/uv3301/Android/Sdk
    β€’ Platform android-30, build-tools 30.0.3
    β€’ Java binary at: /home/uv3301/Applications/android-studio/jre/bin/java
    β€’ Java version OpenJDK Runtime Environment (build
      1.8.0_242-release-1644-b3-6222593)
    β€’ All Android licenses accepted.

[βœ—] Chrome - develop for the web (Cannot find Chrome executable at
    google-chrome)
    ! Cannot find Chrome. Try setting CHROME_EXECUTABLE to a Chrome executable.

[βœ“] Android Studio (version 4.1)
    β€’ Android Studio at /home/uv3301/Applications/android-studio
    β€’ Flutter plugin version 55.1.1
    β€’ Dart plugin version 201.9335
    β€’ Java version OpenJDK Runtime Environment (build
      1.8.0_242-release-1644-b3-6222593)

[βœ“] Connected device (1 available)
    β€’ Android SDK built for x86 64 (mobile) β€’ emulator-5554 β€’ android-x64 β€’
      Android 9 (API 28) (emulator)

! Doctor found issues in 1 category.

Additional context Additionally the error on console is such :

E/flutter (16385): [ERROR:flutter/lib/ui/ui_dart_state.cc(199)] Unhandled Exception: MissingPluginException(No implementation found for method camera#animate on channel plugins.flutter.io/google_maps_3)
E/flutter (16385): #0      MethodChannel._invokeMethod (package:flutter/src/services/platform_channel.dart:156:7)
E/flutter (16385): <asynchronous suspension>
E/flutter (16385): #1      _PlacePickerState._moveTo (package:google_maps_place_picker/src/place_picker.dart:346:5)
E/flutter (16385): <asynchronous suspension>
E/flutter (16385): #2      _PlacePickerState._pickPrediction (package:google_maps_place_picker/src/place_picker.dart:337:5)
E/flutter (16385): <asynchronous suspension>
E/flutter (16385): 
I/flutter (16385): state: SearchingState.Idle, isSearchBarFocused: false
haroonkhan335 commented 3 years ago

Experiencing the same issues..

Any solution you have found already?

uV3301 commented 3 years ago

@haroonkhan335 No mate, didn't find anything yet.
@fysoul17 please look at the issue.

Milinda1313 commented 2 years ago

https://stackoverflow.com/a/72052990/8631092

issue solved from this fix