From ab3b79c5aa73ebaefce4d47fda699784589a58b8 Mon Sep 17 00:00:00 2001 From: zhuce <821293938@qq.com> Date: Sat, 16 Mar 2024 18:17:51 +0800 Subject: [PATCH] =?UTF-8?q?=E5=9C=A8=E5=9C=B0=E5=9B=BE=E4=B8=8A=E6=98=BE?= =?UTF-8?q?=E7=A4=BA=E5=AE=9A=E4=BD=8D=20second=20commit?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/pages/home/widgets/map_widget.dart | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/lib/pages/home/widgets/map_widget.dart b/lib/pages/home/widgets/map_widget.dart index def9850..0e7cd71 100644 --- a/lib/pages/home/widgets/map_widget.dart +++ b/lib/pages/home/widgets/map_widget.dart @@ -85,12 +85,8 @@ class _MapWidgetState extends State { _locationResult = result; }); print("location=$_locationResult"); - WidgetsBinding.instance.addPostFrameCallback((timeStamp) { - _moveCamera(_locationResult); - }); }); _locationPlugin.startLocation(); - } @override @@ -112,6 +108,7 @@ class _MapWidgetState extends State { _mapController = controller; getApprovalNumber(); }); + _mapController.moveCamera(CameraUpdate.newCameraPosition(CameraPosition(target: LatLng(29.52,121.31)))); }, ); return Expanded(