Flutter 颤振:showLocationPicker不';行不通

Flutter 颤振:showLocationPicker不';行不通,flutter,google-maps,dart,google-cloud-platform,Flutter,Google Maps,Dart,Google Cloud Platform,我正在尝试使用showLocationPicker,但搜索不起作用,而且任何地方的名称都未命名,如图所示 这是我的控制台 带PlatformViewsController(22275):创建大小为: [10802301]可能导致 问题()。它更大 超过设备屏幕大小:[10802218]。I/Dialog(22275): mIsSamsungBasicInteraction=false,isMetaDataInActivity=false I/Google地图Android API(22275)

我正在尝试使用showLocationPicker,但搜索不起作用,而且任何地方的名称都未命名,如图所示

这是我的控制台

带PlatformViewsController(22275):创建大小为: [10802301]可能导致 问题()。它更大 超过设备屏幕大小:[10802218]。I/Dialog(22275): mIsSamsungBasicInteraction=false,isMetaDataInActivity=false I/Google地图Android API(22275):Google Play服务包 版本:2111515046 I/System.out(22275):(HTTPLog)-静态: isSBSettingEnabled假I/System.out(22275):(HTTPLog)-静态: isSBSettingEnabled假I/System.out(22275):(HTTPLog)-静态: isSBSettingEnabled假I/System.out(22275):(HTTPLog)-静态: isSBSettingEnabled false I/DecorView(22275):[INFO]isPoOver=false, config=false I/DecorView(22275):更新选项类型>> DecorView@56c47a[],isFloating=false,isApplication=false, hasWindowDecorCaption=false,hasWindowControllerCallback=false D/DecorView(22275):setCaptionType=0,此=DecorView@56c47a[] D/InputTransport(22275):构建的输入通道:“d51b19e”,fd=118 我/ViewRootImpl@a21ad34MainActivity:setView= com.android.internal.policy。DecorView@56c47aTM=真 I/SurfaceView(22275):onWindowVisibilityChanged(0)true com.google.maps.api.android.lib6.gmm6.api.at{e69cda3 VFE…C。。 ……ID 0,0-0,0}ViewRootImpl@a21ad34[主要活动] 我/ViewRootImpl@a21ad34MainActivity:重新播放返回: 旧=(0,010802301)新=(0,010802301)请求=(10802301)0 dur=9 res=0x7 s={true 542107345360}ch=true fn=-1 I/SurfaceView(22275): 窗台(假)真 com.google.maps.api.android.lib6.gmm6.api.at{e69cda3 VFE…C。。 ……ID 0,0-0,0}ViewRootImpl@a21ad34[主要活动] 我/ViewRootImpl@a21ad34MainActivity:[DP]DP(1)1 android.view.ViewRootImpl.reportNextDraw:10761 android.view.ViewRootImpl.performTraversals:3733 android.view.ViewRootImpl.doTraversal:2519 I/SurfaceView(22275): updateSurface:visible=true mSurface.isValid()=true I/SurfaceView(22275):更新surface:mSurfaceCreated=false surfaceChanged=true visibleChanged=true I/SurfaceView(22275): 表面处理1#8 com.google.maps.api.android.lib6.gmm6.api.at{e69cda3 VFE…C。。 ……ID 0,0-10802301}I/表面视图(22275):表面更改 (10802301)1#8com.google.maps.api.android.lib6.gmm6.api.at{e69cda3 VFE…C…ID 0,0-10802301} 我/ViewRootImpl@a21ad34MainActivity:[DP]DP(2)1 android.view.SurfaceView.updateSurface:1300 android.view.SurfaceView$1.onPreDraw:218 android.view.ViewTreeObserver.dispatchOnPreDraw:1124 我/ViewRootImpl@a21ad34MainActivity:[DP]pdf(1)1 android.view.SurfaceView.notifyDrawFinished:567 android.view.SurfaceView.performDrawFinished:554 lambda$twz4d2u33zlamrtgkzbqdue3im:0 我/ViewRootImpl@a21ad34MainActivity:[DP]pd()Asnyc报告 我/ViewRootImpl@a21ad34MainActivity:[DP]pdf(0)1 android.view.ViewRootImpl.lambda$performDraw$1$ViewRootImpl:4554 android.view.-$$Lambda$ViewRootImpl$djd0vuyjgsebcnsoho 6h8zc_ONI.run:6 android.os.Handler.handleCallback:938 我/ViewRootImpl@a21ad34MainActivity:[DP]rdf()I/颤振 (22275):onCameradle#(u lastmaposition=LatLng(0.0,0.0) I/System.out(22275):(HTTPLog)-静态:isSBSettingEnabled false I/System.out(22275):(HTTPLog)-静态:isSBSettingEnabled false I/颤振(22275):范围错误(索引):无效值:有效值 范围为空:0 I/颤振(22275):范围错误(索引):无效 值:有效值范围为空:0 I/颤振(22275): 软件包:google_map_location_picker/src/map.dart 99:7 | position= 纬度:31.0402895,经度:30.4769815 I/颤振(22275): 软件包:google\u map\u location\u picker/src/map.dart 117:5| MapPickerState.moveToCurrentLocation“当前位置= [LatLng(31.0402895,30.4769814999994)]“I/颤振(22275): onCameraMoveStarted#_lastMapPosition=LatLng(0.0,0.0)带系统 (22275):资源调用释放失败。I/颤振(22275): RangeError(索引):无效值:有效值范围为空:0 I/颤振(22275):onCameraIdle#u lastMapPosition= 板条(31.040292811306172,30.476981475949287)I/颤振(22275): RangeError(索引):无效值:有效值范围为空:0

这是我的代码,我用它来做这部分

LocationResult result = await showLocationPicker(
                        context,
                        apiKey,
                        initialCenter: LatLng(0, 0),
                        automaticallyAnimateToCurrentLocation: true,
//                      mapStylePath: 'assets/mapStyle.json',
                        myLocationButtonEnabled: true,
                        // requiredGPS: true,
                        layersButtonEnabled: true,
                        language: 'ar',
                        countries: ['SA', 'EG'],
                        resultCardAlignment: Alignment.bottomCenter,
                        desiredAccuracy: LocationAccuracy.best,
                      );
                      print("result = $result");
                      setState(() => _pickedLocation = result);
请注意,我正在控制台中启用此api:

Android地图SDK iOS地图SDK 地方空气污染指数 地理定位 地理编码API

我有账单账户