From a1c493a318403dfe4a0f97f404879a2d2cfba188 Mon Sep 17 00:00:00 2001 From: Guillaume Roux Date: Tue, 17 Oct 2023 12:36:05 +0200 Subject: [PATCH] fix: moved applyFit in mounted check --- lib/src/map/widget.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/src/map/widget.dart b/lib/src/map/widget.dart index 8ed81842e..5f7dd9042 100644 --- a/lib/src/map/widget.dart +++ b/lib/src/map/widget.dart @@ -234,9 +234,9 @@ class _FlutterMapStateContainer extends State oldCamera, newMapCamera, ); - } - _applyInitialCameraFit(constraints); + _applyInitialCameraFit(constraints); + } }); } }