flutter - 嘈杂的登录颤振谷歌地图
问题描述
我正在使用 google_maps_flutter,E/AccesibilityNodeInfo (17886) 的日志太吵了,拒绝尝试创建自己的子视图
它还没有引起任何错误,应用程序运行良好我只是想知道为什么即使我没有在屏幕上做任何事情也会不断显示消息。
import 'dart:async';
import 'package:flutter/material.dart';
import 'package:google_maps_flutter/google_maps_flutter.dart';
import '../../models/place.dart';
class MapScreen extends StatefulWidget {
final bool isSelecting;
final PlaceLocation initialLocation;
MapScreen({
this.isSelecting = false,
this.initialLocation =
const PlaceLocation(latitude: 37.422, longitude: -122.084),
});
@override
_MapScreenState createState() => _MapScreenState();
}
class _MapScreenState extends State<MapScreen> {
Completer<GoogleMapController> _mapController = Completer();
LatLng _pickedLocation;
void _selectLocation(LatLng position) {
setState(() {
_pickedLocation = position;
});
}
@override
Widget build(BuildContext context) {
return new Scaffold(
appBar: AppBar(
title: Text('Map'),
actions: [
IconButton(
icon: Icon(Icons.check),
onPressed: () {},
),
],
),
body: GoogleMap(
onMapCreated: (controller) {
_mapController.complete(controller);
},
initialCameraPosition: CameraPosition(
target: LatLng(
widget.initialLocation.latitude,
widget.initialLocation.longitude,
),
zoom: 16,
),
myLocationEnabled: true,
myLocationButtonEnabled: true,
onTap: widget.isSelecting ? _selectLocation : null,
markers: _pickedLocation == null
? null
: {
Marker(
markerId: MarkerId('1'),
position: _pickedLocation,
),
},
),
);
}
}
这是我正在使用的代码
解决方案
推荐阅读
- php - 显示警报消息和未插入数据(已解决)
- xslt-3.0 - 如何通过流处理单个 xml 的两个部分?
- python - 将透视图转换为俯视图
- python - 如何在xml中保存数据
- angular - 将 Excel 数据转换为 Json 字符串时出错。FileReader.onload 不工作
- go - 如何使一个 pod 与另一个 pod 的 localhost 通信
- scala - sbt 目录结构的变体
- reactjs - 优化由反应脚本生成的包大小所需的建议
- google-maps - 带有 zIndex 的 Flutter Google-Map Markers 不能可靠地工作
- python - 从字符串和列表的元组中将所有值作为字符串返回