fixed popup and map scale issues

This commit is contained in:
Mohamed Nouffer
2023-09-11 18:04:29 +05:30
parent c2d9e366d1
commit d67d17e971
3 changed files with 22 additions and 24 deletions

View File

@ -155,7 +155,9 @@ class MapWidget extends StatelessWidget {
interactiveFlags:
InteractiveFlag.pinchZoom | InteractiveFlag.drag,
onPositionChanged: (MapPosition pos, isvalue) {},
onPositionChanged: (MapPosition pos, isvalue) {
indexController.currentBound = [pos.bounds!];
},
onTap: (_, __) => _popupController
.hideAllPopups(), // Hide popup when the map is tapped.
),