Description
Able to search places, getting nearby places as well, Map view is not rendered in the screen. I am able to move scroll left/right/top/bottom with finger in blank screen and able to see the updated location information in info section. Not sure whats going wrong here. I have below enabled APIs.
- Maps Embed API
- Maps JavaScript API
- Maps SDK for Android
- Maps SDK for iOS
- Places API
- Geocoding API
- Geolocation API
Flutter doctor -v
• Flutter version 2.5.2
• Framework revision 3595343e20 (7 weeks ago), 2021-09-30 12:58:18 -0700
• Engine revision 6ac856380f
• Dart version 2.14.3
Android Manifest.xml
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="xxxxxxxxxxxxxxxxxxxxxx">
<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
<uses-permission android:name="android.permission.ACCESS_COARSE_LOCATION" />
<queries>
<!-- If your app opens https URLs -->
<intent>
<action android:name="android.intent.action.VIEW" />
<data android:scheme="https" />
</intent>
<!-- If your app makes calls -->
<intent>
<action android:name="android.intent.action.DIAL" />
<data android:scheme="tel" />
</intent>
</queries>
<application
android:label="Surprise Me"
android:icon="@mipmap/ic_launcher">
<activity
android:name=".MainActivity"
android:launchMode="singleTop"
android:theme="@style/LaunchTheme"
android:configChanges="orientation|keyboardHidden|keyboard|screenSize|smallestScreenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode"
android:hardwareAccelerated="true"
android:windowSoftInputMode="adjustResize">
<!-- Specifies an Android theme to apply to this Activity as soon as
the Android process has started. This theme is visible to the user
while the Flutter UI initializes. After that, this theme continues
to determine the Window background behind the Flutter UI. -->
<meta-data
android:name="io.flutter.embedding.android.NormalTheme"
android:resource="@style/NormalTheme"
/>
<!-- Displays an Android View that continues showing the launch screen
Drawable until Flutter paints its first frame, then this splash
screen fades out. A splash screen is useful to avoid any visual
gap between the end of Android's launch screen and the painting of
Flutter's first frame. -->
<meta-data
android:name="io.flutter.embedding.android.SplashScreenDrawable"
android:resource="@drawable/launch_background"
/>
<intent-filter>
<action android:name="android.intent.action.MAIN"/>
<category android:name="android.intent.category.LAUNCHER"/>
</intent-filter>
</activity>
<!-- Don't delete the meta-data below.
This is used by the Flutter tool to generate GeneratedPluginRegistrant.java -->
<meta-data
android:name="flutterEmbedding"
android:value="2" />
<meta-data android:name="com.google.android.geo.API_KEY"
android:value="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"/>
</application>
</manifest>
Code:
LocationResult? result = await Get.to(PlacePicker("xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", displayLocation: geo))?.catchError((err) { print('error from place picker'); print(err); });
I dont see issue in logs as well. Not sure whats missing.
Logs while initiating the map rendering.
I/flutter (14977): LatLng(12.9030109, 77.6777025)
W/IInputConnectionWrapper(14977): getSelectedText on inactive InputConnection
W/IInputConnectionWrapper(14977): requestCursorAnchorInfo on inactive InputConnection
W/IInputConnectionWrapper(14977): getTextBeforeCursor on inactive InputConnection
W/IInputConnectionWrapper(14977): getTextBeforeCursor on inactive InputConnection
D/InputConnectionAdaptor(14977): The input method toggled cursor monitoring on
W/riseme.custome(14977): Accessing hidden method Lsun/misc/Unsafe;->putLong(Ljava/lang/Object;JJ)V (greylist, linking, allowed)
I/chatty (14977): uid=10262(com.surpriseme.customer) GoogleApiHandle identical 11 lines
W/riseme.custome(14977): Accessing hidden method Lsun/misc/Unsafe;->putLong(Ljava/lang/Object;JJ)V (greylist, linking, allowed)
E/riseme.custome(14977): Invalid ID 0x00000000.
I/Google Maps Android API(14977): Google Play services package version: 213918037
I/Google Maps Android API(14977): Google Play services maps renderer version(legacy): 203115000
E/riseme.custome(14977): Invalid ID 0x00000000.
E/riseme.custome(14977): Invalid ID 0x00000000.
W/riseme.custome(14977): Accessing hidden method Lsun/misc/Unsafe;->getLong(Ljava/lang/Object;J)J (greylist,core-platform-api, linking, allowed)
W/riseme.custome(14977): Accessing hidden method Lsun/misc/Unsafe;->putLong(Ljava/lang/Object;JJ)V (greylist, linking, allowed)
I/chatty (14977): uid=10262(com.surpriseme.customer) GoogleApiHandle identical 31 lines
W/riseme.custome(14977): Accessing hidden method Lsun/misc/Unsafe;->putLong(Ljava/lang/Object;JJ)V (greylist, linking, allowed)
W/riseme.custome(14977): Accessing hidden method Lsun/misc/Unsafe;->compareAndSwapObject(Ljava/lang/Object;JLjava/lang/Object;Ljava/lang/Object;)Z (greylist, linking, allowed)
W/riseme.custome(14977): Accessing hidden method Lsun/misc/Unsafe;->compareAndSwapObject(Ljava/lang/Object;JLjava/lang/Object;Ljava/lang/Object;)Z (greylist, linking, allowed)
W/riseme.custome(14977): Accessing hidden method Lsun/misc/Unsafe;->getLong(Ljava/lang/Object;J)J (greylist,core-platform-api, linking, allowed)
W/riseme.custome(14977): Accessing hidden method Lsun/misc/Unsafe;->putLong(Ljava/lang/Object;JJ)V (greylist, linking, allowed)
I/chatty (14977): uid=10262(com.surpriseme.customer) GoogleApiHandle identical 5 lines
W/riseme.custome(14977): Accessing hidden method Lsun/misc/Unsafe;->putLong(Ljava/lang/Object;JJ)V (greylist, linking, allowed)
I/flutter (14977): HandshakeException: Connection terminated during handshake
W/riseme.custome(14977): Accessing hidden method Lsun/misc/Unsafe;->getLong(Ljava/lang/Object;J)J (greylist,core-platform-api, linking, allowed)
W/riseme.custome(14977): Accessing hidden method Lsun/misc/Unsafe;->putLong(Ljava/lang/Object;JJ)V (greylist, linking, allowed)
I/chatty (14977): uid=10262(com.surpriseme.customer) GoogleApiHandle identical 5 lines
W/riseme.custome(14977): Accessing hidden method Lsun/misc/Unsafe;->putLong(Ljava/lang/Object;JJ)V (greylist, linking, allowed)