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(