Flutter flatter我的谷歌地图在发布版本中不工作或显示

Flutter flatter我的谷歌地图在发布版本中不工作或显示,flutter,google-maps,dart,Flutter,Google Maps,Dart,我在我的应用程序和它的工作文件中使用谷歌地图,但问题是当我创建一个发布版本时,地图没有显示,我几乎看不到地图阴影和缩放控制按钮,但它不可见。我不知道在调试模式下运行时发生了什么。它工作得非常好 我的代码 Stack( children: [ GoogleMap( mapType: MapType.normal, initialCameraPositi

我在我的应用程序和它的工作文件中使用谷歌地图,但问题是当我创建一个发布版本时,地图没有显示,我几乎看不到地图阴影和缩放控制按钮,但它不可见。我不知道在调试模式下运行时发生了什么。它工作得非常好

我的代码

Stack(
                children: [
                  GoogleMap(
                    mapType: MapType.normal,
                    initialCameraPosition: CameraPosition(
                        target: loading == false
                            ? currentPostion
                            : LatLng(1.0, 1.0),
                        zoom: 18,
                        tilt: 50),
                    markers:
                        Set<Marker>.of(markers.values), // YOUR MARKS IN MAP
                  ),
                  Align(
                      alignment: Alignment.bottomCenter,
                      child: Flexible(
                        flex: 1,
                        child: ClipRRect(
                          borderRadius: BorderRadius.circular(40.0),
                          child: Padding(
                            padding: EdgeInsets.fromLTRB(18.0, 0.0, 18.0, 15.0),
                            child: Container(
                                color: Colors.white,
                                height:
                                    MediaQuery.of(context).size.height * 0.25,
                                width: MediaQuery.of(context).size.width,
                                child: Center(
                                    child: Column(
                                  children: [
                                    Container(
                                      color: Color(0xfff5f6fb),
                                      child: Padding(
                                        padding: const EdgeInsets.all(8.0),
                                        child: Center(
                                            child: Text(
                                          'EVENT SUMMARY',
                                          style: TextStyle(
                                              fontFamily: 'UbuntuRegular',
                                              fontSize: 15,
                                              color: Color(0xff8f9ba8)),
                                        )),
                                      ),
                                    ),
                                    Center(
                                      child: Container(
                                        margin: EdgeInsets.all(10),
                                        padding: EdgeInsets.all(10),
                                        width:
                                            MediaQuery.of(context).size.height *
                                                0.08,
                                        height:
                                            MediaQuery.of(context).size.height *
                                                0.08,
                                        child: Center(
                                          child: Column(
                                            crossAxisAlignment:
                                                CrossAxisAlignment.center,
                                            mainAxisAlignment:
                                                MainAxisAlignment.center,
                                            children: <Widget>[
                                              Text(
                                                "01",
                                                style: TextStyle(
                                                    fontFamily: 'UbuntuRegular',
                                                    fontSize: 22,
                                                    color: Colors.white),
                                                textAlign: TextAlign.center,
                                              ),
                                            ],
                                          ),
                                        ),
                                        decoration: BoxDecoration(
                                          borderRadius: BorderRadius.all(
                                            Radius.circular(200),
                                          ),
                                          color: Color(0xffff8300),
                                        ),
                                      ),
                                    ),
                                    Text(
                                      capitalize(widget.data['eventType']),
                                      style: TextStyle(
                                          fontFamily: 'UbuntuRegular',
                                          fontSize: 16,
                                          color: Colors.black54),
                                    ),
                                    SizedBox(
                                      height:
                                          MediaQuery.of(context).size.height *
                                              0.01,
                                    ),
                                    Row(
                                      children: [
                                        SizedBox(
                                          width: MediaQuery.of(context)
                                                  .size
                                                  .width *
                                              0.02,
                                        ),
                                        SizedBox(
                                          width: MediaQuery.of(context)
                                                  .size
                                                  .width *
                                              0.02,
                                        ),
                                        Container(
                                            child:
                                                Image.asset('images/Oval.png')),
                                        SizedBox(
                                          width: MediaQuery.of(context)
                                                  .size
                                                  .width *
                                              0.02,
                                        ),
                                        Text(
                                          widget.data['details']['telemetry']
                                              ['location']['address'],
                                          style: TextStyle(
                                              fontFamily: 'UbuntuRegular',
                                              fontSize: 14,
                                              color: Colors.black54),
                                        )
                                      ],
                                    )
                                  ],
                                ))),
                          ),
                        ),
                      ))
                ],
         
 )
堆栈(
儿童:[
谷歌地图(
mapType:mapType.normal,
initialCameraPosition:CameraPosition(
目标:加载==false
?当前位置
:LatLng(1.0,1.0),
缩放:18,
倾斜度:50),
标记:
Set.of(markers.values),//您在地图中的标记
),
对齐(
对齐:对齐.bottomCenter,
儿童:灵活(
弹性:1,
孩子:ClipRRect(
边界半径:边界半径。圆形(40.0),
孩子:填充(
填充:来自LTRB(18.0,0.0,18.0,15.0)的边缘设置,
子:容器(
颜色:颜色,白色,
高度:
MediaQuery.of(context).size.height*0.25,
宽度:MediaQuery.of(context).size.width,
儿童:中心(
子:列(
儿童:[
容器(
颜色:颜色(0xfff5f6fb),
孩子:填充(
填充:常数边集全部(8.0),
儿童:中心(
子:文本(
“事件摘要”,
样式:TextStyle(
fontFamily:“UbuntuRegular”,
尺寸:15,
颜色:颜色(0xff8f9ba8)),
)),
),
),
居中(
子:容器(
保证金:所有(10),
填充:边缘设置。全部(10),
宽度:
MediaQuery.of(上下文).size.height*
0.08,
高度:
MediaQuery.of(上下文).size.height*
0.08,
儿童:中心(
子:列(
横轴对齐:
交叉轴对齐。中心,
主轴对准:
main.center,
儿童:[
正文(
"01",
样式:TextStyle(
fontFamily:“UbuntuRegular”,
尺寸:22,
颜色:颜色。白色),
textAlign:textAlign.center,
),
],
),
),
装饰:盒子装饰(
borderRadius:borderRadius.all(
圆形半径(200),
),
颜色:颜色(0xffff8300),
),
),
),
正文(
大写(widget.data['eventType']),
样式:TextStyle(
fontFamily:“UbuntuRegular”,
尺寸:16,
颜色:颜色。黑色54),
),
大小盒子(
高度:
MediaQuery.of(上下文).size.height*
0.01,
),
划船(
儿童:[
大小盒子(
宽度:MediaQuery.of(上下文)
.尺寸
.宽度*
0.02,
),
大小盒子(
宽度:MediaQuery.of(上下文)
.尺寸
.宽度*
Another exception was thrown: Instance of 'DiagnosticsProperty<void>'
Column
- Expanded 
  - Google map
- Container
  - Your container child