Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

279
Visualizações
Google_maps pinch to zoom and double tap detection possible in Flutter..?

I am working on a google map. Actually I want this functionality when the user zooms the map or double taps on a map position it will behave like a super app. in uber map it became static when user zoomed or double tapped but i can't find this functionality in flutter map

I am using this google_maps_flutter package: ^2.1.1

 Completer<GoogleMapController> completer; GoogleMap( myLocationEnabled: true, myLocationButtonEnabled: false, mapToolbarEnabled: false, zoomGesturesEnabled: true, zoomControlsEnabled: false, rotateGesturesEnabled: false, scrollGesturesEnabled: true, tiltGesturesEnabled: false, markers: locationData.locationMarkers.values.toSet(), initialCameraPosition: CameraPosition( target: LatLng(widget.lat, widget.long), zoom: 16.4746, ), onCameraMove: (position) { latitude = position.target.latitude; longitude = position.target.longitude; }, onCameraIdle: () async { if (latitude != null && longitude != null) { print("not workng"); geoCodeProvider.setLatitude(latitude); geoCodeProvider.setLongitude(longitude); } }, onMapCreated: (GoogleMapController controller) { widget.completer.complete(controller); }, )
over 4 years ago · Santiago Trujillo
1 Respostas
Responde à pergunta

0

You can use this code to add gesture on google map

 GoogleMap( initialCameraPosition: CameraPosition( target: LatLng(0, 0), ), gestureRecognizers: Set() ..add(Factory<TapGestureRecognizer>(() => TapGestureRecognizer())) );

Handling the zoom level when the user interacts with the map

 GoogleMap( zoomGesturesEnabled: true, tiltGesturesEnabled: false, onCameraMove:(CameraPosition cameraPosition){ print(cameraPosition.zoom); }, )

Add this for the minimum or maximum zoom level on the map

 minMaxZoomPreference: MinMaxZoomPreference(13,17)
over 4 years ago · Santiago Trujillo Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda