map_location_picker icon indicating copy to clipboard operation
map_location_picker copied to clipboard

Uanble to go back from map screen

Open SatyaMirthipati opened this issue 7 months ago • 0 comments

I am using version map_location_picker: ^1.3.0 after I update the version I am unable to go back in the screen it is struck in the same screen I have tried using the backbutton widget in code as MaterialPageRoute( builder: (context) { return MapLocationPicker( popOnNextButtonTaped: true, hideSuggestionsOnKeyboardHide: true, apiKey: 'Your Api Key', currentLatLng: locationBloc.currentPosition, backButton: BackButton( onPressed: () => Navigator.maybePop(context), ), onNext: (GeocodingResult? result) { if (result != null) { addressCtrl.text = '${result.formattedAddress}'; latitude = '${result.geometry.location.lat}'; longitude = '${result.geometry.location.lng}'; setState(() {}); } }, onSuggestionSelected: (PlacesDetailsResponse? result) { if (result != null) { addressCtrl.text = '${result.result.formattedAddress}'; latitude = '${result.result.geometry?.location.lat}'; longitude = '${result.result.geometry?.location.lng}'; setState(() {}); } }, ); }, ),

One more thing when I click on the location button which navigates to the current location When I am at the same location & try to hit the same screen it is navigated to the settings of my app.

SatyaMirthipati avatar Jul 08 '24 09:07 SatyaMirthipati